'test:diagnostic' 事件
data<Object>file<string> | <undefined> 测试文件的路径,如果测试未通过文件运行则未定义。message<string> 诊断消息。nesting<number> 测试的嵌套级别。
调用 context.diagnostic 时触发。
data<Object>file<string> | <undefined> The path of the test file, undefined if test is not ran through a file.message<string> The diagnostic message.nesting<number> The nesting level of the test.
Emitted when context.diagnostic is called.