如何解决为什么即使在将 include 添加到 .nycrc 之后 nyc 也找不到类?
{
"exclude": [
"node_modules"
],"include":[
"service/**/*.js"
],"reporter": [
"text","html"
],"reportDir":"reports/nyc","tempDir":"reports/tmp/nyc","check-coverage": true
}
它似乎正在工作,因为我看到输出到正确的文件夹。但是当它完成运行时我看到...
465 passing (11s)
6 pending
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 0 | 0 | 0 | 0 |
----------|---------|----------|---------|---------|-------------------
npm 命令是 nyc mocha --recursive --exit
为什么找不到文件?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。