【发布时间】:2019-12-11 21:02:58
【问题描述】:
我正在尝试使用npm test 对我的项目进行一些集成测试,我的目录如下:
Main_directory==>tests==>integration==>auth.test.js 和 bar.test.js
在我的 package.json 中,我有这个:
"scripts": {
"test": "jest --watchAll --verbose"
},
当我执行代码 npm test 时,我在终端上遇到了这个令人难以置信的错误:
No tests found
In G:\main_directory
35 files checked.
testMatch: **/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x) - 5 matches
testPathIgnorePatterns: \\node_modules\\ - 35 matches
Pattern: - 0 matches
您对如何让一切恢复正常并运行一些流畅的集成测试有任何想法吗?
【问题讨论】:
标签: javascript jestjs integration-testing