事件:'test:diagnostic'
🌐 Event: 'test:diagnostic'
data<Object>column<number> | <undefined> 定义测试的列号,如果测试是通过 REPL 运行的,则为undefined。entryFile<string> | <undefined> 作为触发此事件的子进程入口点而执行的测试文件路径。只有在使用进程隔离运行测试时才会出现。当测试是在入口文件导入的模块中定义时,可能与file不同。file<string> | <undefined> 测试文件的路径,如果测试是通过 REPL 运行的,则为undefined。line<number> | <undefined> 定义测试的行号,如果测试是通过 REPL 运行的,则为undefined。message<string> 诊断信息。nesting<number> 测试的嵌套级别。level<string> 诊断消息的严重程度。可能的取值为:'info':信息消息。'warn':警告。'error':错误。
当调用 context.diagnostic 时触发此事件。此事件保证按照测试定义的顺序触发。
🌐 Emitted when context.diagnostic is called.
This event is guaranteed to be emitted in the same order as the tests are
defined.