事件:'test:dequeue'
¥Event: 'test:dequeue'
-
data
<Object>-
column
<number> | <undefined> 定义测试的列号,如果测试是通过 REPL 运行的,则为undefined
。¥
column
<number> | <undefined> The column number where the test is defined, orundefined
if the test was run through the REPL. -
file
<string> | <undefined> 测试文件的路径,如果测试是通过 REPL 运行的,则为undefined
。¥
file
<string> | <undefined> The path of the test file,undefined
if test was run through the REPL. -
line
<number> | <undefined> 定义测试的行号,如果测试是通过 REPL 运行的,则为undefined
。¥
line
<number> | <undefined> The line number where the test is defined, orundefined
if the test was run through the REPL. -
name
<string> 测试名称。¥
name
<string> The test name. -
nesting
<number> 测试的嵌套级别。¥
nesting
<number> The nesting level of the test. -
type
<string> 测试类型。'suite'
或'test'
。¥
type
<string> The test type. Either'suite'
or'test'
.
-
当测试出列时(在执行之前)触发。不保证此事件按照测试定义的顺序触发。对应的声明顺序事件为 'test:start'
。
¥Emitted when a test is dequeued, right before it is executed.
This event is not guaranteed to be emitted in the same order as the tests are
defined. The corresponding declaration ordered event is 'test:start'
.