报错:No coverage information was collected, exit without writing coverage information
先贴出报错: 注意:我的mocha单元测试均通过,但是istanbul的测试覆盖率却无法生效。
本地的test命令如下:
"scripts": {"test": "istanbul cover ./node_modules/.bin/_mocha",},
安装的istanbul…
2026/7/28 15:14:03