Istanbul nyc to exclude test files

折月煮酒 提交于 2019-12-03 23:37:16

Right, after some digging I've managed to get this working. I've added

"nyc": { "include": "app", - only looks in the app folder "exclude": "**/*.spec.js" }

to my package.json. Since I'm using webpack I'll probably try and find a way of defining this rule in the webpack.config file (if possible at all). I'll come back if I get an answer to this.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!