为什么即使在将 include 添加到 .nycrc 之后 nyc 也找不到类?

问题描述

我有以下 .nyrc 文件...

{
  "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 (将#修改为@)