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