监视模式


\Watch mode

新增于: v19.2.0, v18.13.0
稳定性: 1 - 实验性的

\Stability: 1 - Experimental

Node.js 测试运行器支持通过传递 --watch 标志以监视模式运行:

\The Node.js test runner supports running in watch mode by passing the --watch flag:

node --test --watch 

在监视模式下,测试运行器将监视测试文件及其依赖的更改。当检测到变化时,测试运行器将重新运行受变化影响的测试。测试运行器将继续运行直到进程终止。

\In watch mode, the test runner will watch for changes to test files and their dependencies. When a change is detected, the test runner will rerun the tests affected by the change. The test runner will continue to run until the process is terminated.

AltStyle によって変換されたページ (->オリジナル) /