--experimental-test-coverage
当与 node:test 模块结合使用时,会在测试运行器输出中生成代码覆盖率报告。如果没有运行任何测试,则不会生成覆盖率报告。有关更多详细信息,请参阅 从测试中收集代码覆盖率 的文档。
【When used in conjunction with the node:test module, a code coverage report is
generated as part of the test runner output. If no tests are run, a coverage
report is not generated. See the documentation on
collecting code coverage from tests for more details.】