事件:'test:stderr'


¥Event: 'test:stderr'

  • data <Object>

    • column <number> | <undefined> 定义测试的列号,如果测试是通过 REPL 运行的,则为 undefined

      ¥column <number> | <undefined> The column number where the test is defined, or undefined if the test was run through the REPL.

    • file <string> 测试文件的路径。

      ¥file <string> The path of the test file.

    • line <number> | <undefined> 定义测试的行号,如果测试是通过 REPL 运行的,则为 undefined

      ¥line <number> | <undefined> The line number where the test is defined, or undefined if the test was run through the REPL.

    • message <string> 写入 stderr 的消息。

      ¥message <string> The message written to stderr.

当正在运行的测试写入 stderr 时触发。只有在传递 --test 标志时才会触发此事件。

¥Emitted when a running test writes to stderr. This event is only emitted if --test flag is passed.