事件:'test:stderr'


🌐 Event: 'test:stderr'

  • data <Object>
    • entryFile <string> | <undefined> 作为触发此事件的子进程入口点执行的测试文件的路径。只有在使用进程隔离运行测试时才会出现。
    • file <string> 测试文件的路径。
    • message <string> 写给 stderr 的信息。

当正在运行的测试写入 stderr 时触发。只有在传递了 --test 标志时才会触发此事件。此事件不保证按测试定义的顺序触发。

🌐 Emitted when a running test writes to stderr. This event is only emitted if --test flag is passed. This event is not guaranteed to be emitted in the same order as the tests are defined.