@@ -2034,8 +2034,12 @@ Emitted when code coverage is enabled and all tests have completed.
2034
2034
### Event: ` 'test:dequeue' `
2035
2035
2036
2036
* ` data ` {Object}
2037
+ * ` column ` {number|undefined} The column number where the test is defined, or
2038
+ ` undefined ` if the test was run through the REPL.
2037
2039
* ` file ` {string|undefined} The path of the test file,
2038
2040
` undefined ` if test was run through the REPL.
2041
+ * ` line ` {number|undefined} The line number where the test is defined, or
2042
+ ` undefined ` if the test was run through the REPL.
2039
2043
* ` name ` {string} The test name.
2040
2044
* ` nesting ` {number} The nesting level of the test.
2041
2045
@@ -2044,8 +2048,12 @@ Emitted when a test is dequeued, right before it is executed.
2044
2048
### Event: ` 'test:diagnostic' `
2045
2049
2046
2050
* ` data ` {Object}
2051
+ * ` column ` {number|undefined} The column number where the test is defined, or
2052
+ ` undefined ` if the test was run through the REPL.
2047
2053
* ` file ` {string|undefined} The path of the test file,
2048
2054
` undefined ` if test was run through the REPL.
2055
+ * ` line ` {number|undefined} The line number where the test is defined, or
2056
+ ` undefined ` if the test was run through the REPL.
2049
2057
* ` message ` {string} The diagnostic message.
2050
2058
* ` nesting ` {number} The nesting level of the test.
2051
2059
@@ -2054,8 +2062,12 @@ Emitted when [`context.diagnostic`][] is called.
2054
2062
### Event: ` 'test:enqueue' `
2055
2063
2056
2064
* ` data ` {Object}
2065
+ * ` column ` {number|undefined} The column number where the test is defined, or
2066
+ ` undefined ` if the test was run through the REPL.
2057
2067
* ` file ` {string|undefined} The path of the test file,
2058
2068
` undefined ` if test was run through the REPL.
2069
+ * ` line ` {number|undefined} The line number where the test is defined, or
2070
+ ` undefined ` if the test was run through the REPL.
2059
2071
* ` name ` {string} The test name.
2060
2072
* ` nesting ` {number} The nesting level of the test.
2061
2073
@@ -2064,6 +2076,8 @@ Emitted when a test is enqueued for execution.
2064
2076
### Event: ` 'test:fail' `
2065
2077
2066
2078
* ` data ` {Object}
2079
+ * ` column ` {number|undefined} The column number where the test is defined, or
2080
+ ` undefined ` if the test was run through the REPL.
2067
2081
* ` details ` {Object} Additional execution metadata.
2068
2082
* ` duration_ms ` {number} The duration of the test in milliseconds.
2069
2083
* ` error ` {Error} An error wrapping the error thrown by the test.
@@ -2072,6 +2086,8 @@ Emitted when a test is enqueued for execution.
2072
2086
this is a suite.
2073
2087
* ` file ` {string|undefined} The path of the test file,
2074
2088
` undefined ` if test was run through the REPL.
2089
+ * ` line ` {number|undefined} The line number where the test is defined, or
2090
+ ` undefined ` if the test was run through the REPL.
2075
2091
* ` name ` {string} The test name.
2076
2092
* ` nesting ` {number} The nesting level of the test.
2077
2093
* ` testNumber ` {number} The ordinal number of the test.
@@ -2083,12 +2099,16 @@ Emitted when a test fails.
2083
2099
### Event: ` 'test:pass' `
2084
2100
2085
2101
* ` data ` {Object}
2102
+ * ` column ` {number|undefined} The column number where the test is defined, or
2103
+ ` undefined ` if the test was run through the REPL.
2086
2104
* ` details ` {Object} Additional execution metadata.
2087
2105
* ` duration_ms ` {number} The duration of the test in milliseconds.
2088
2106
* ` type ` {string|undefined} The type of the test, used to denote whether
2089
2107
this is a suite.
2090
2108
* ` file ` {string|undefined} The path of the test file,
2091
2109
` undefined ` if test was run through the REPL.
2110
+ * ` line ` {number|undefined} The line number where the test is defined, or
2111
+ ` undefined ` if the test was run through the REPL.
2092
2112
* ` name ` {string} The test name.
2093
2113
* ` nesting ` {number} The nesting level of the test.
2094
2114
* ` testNumber ` {number} The ordinal number of the test.
@@ -2100,8 +2120,12 @@ Emitted when a test passes.
2100
2120
### Event: ` 'test:plan' `
2101
2121
2102
2122
* ` data ` {Object}
2123
+ * ` column ` {number|undefined} The column number where the test is defined, or
2124
+ ` undefined ` if the test was run through the REPL.
2103
2125
* ` file ` {string|undefined} The path of the test file,
2104
2126
` undefined ` if test was run through the REPL.
2127
+ * ` line ` {number|undefined} The line number where the test is defined, or
2128
+ ` undefined ` if the test was run through the REPL.
2105
2129
* ` nesting ` {number} The nesting level of the test.
2106
2130
* ` count ` {number} The number of subtests that have ran.
2107
2131
@@ -2110,8 +2134,12 @@ Emitted when all subtests have completed for a given test.
2110
2134
### Event: ` 'test:start' `
2111
2135
2112
2136
* ` data ` {Object}
2137
+ * ` column ` {number|undefined} The column number where the test is defined, or
2138
+ ` undefined ` if the test was run through the REPL.
2113
2139
* ` file ` {string|undefined} The path of the test file,
2114
2140
` undefined ` if test was run through the REPL.
2141
+ * ` line ` {number|undefined} The line number where the test is defined, or
2142
+ ` undefined ` if the test was run through the REPL.
2115
2143
* ` name ` {string} The test name.
2116
2144
* ` nesting ` {number} The nesting level of the test.
2117
2145
@@ -2122,7 +2150,11 @@ defined.
2122
2150
### Event: ` 'test:stderr' `
2123
2151
2124
2152
* ` data ` {Object}
2153
+ * ` column ` {number|undefined} The column number where the test is defined, or
2154
+ ` undefined ` if the test was run through the REPL.
2125
2155
* ` file ` {string} The path of the test file.
2156
+ * ` line ` {number|undefined} The line number where the test is defined, or
2157
+ ` undefined ` if the test was run through the REPL.
2126
2158
* ` message ` {string} The message written to ` stderr ` .
2127
2159
2128
2160
Emitted when a running test writes to ` stderr ` .
@@ -2131,7 +2163,11 @@ This event is only emitted if `--test` flag is passed.
2131
2163
### Event: ` 'test:stdout' `
2132
2164
2133
2165
* ` data ` {Object}
2166
+ * ` column ` {number|undefined} The column number where the test is defined, or
2167
+ ` undefined ` if the test was run through the REPL.
2134
2168
* ` file ` {string} The path of the test file.
2169
+ * ` line ` {number|undefined} The line number where the test is defined, or
2170
+ ` undefined ` if the test was run through the REPL.
2135
2171
* ` message ` {string} The message written to ` stdout ` .
2136
2172
2137
2173
Emitted when a running test writes to ` stdout ` .
0 commit comments