开玩笑找不到测试

时间:2020-07-28 22:06:51

标签: jestjs

奇怪的情况:

  • 只是在我的机器上找不到任何测试
  • 相同的代码,相同的操作系统,相同的仓库,git clean,其他机器都可以正常工作。
  • 我已经删除了node_modules并重新安装:错误继续。
  • jest --showConfig在所有计算机上都是相同的
  • 我收到此日志,该日志显示找到64个匹配项(正确),然后:模式:-0个匹配项(错误)
npm run test
> jest

No tests found
In /projects/XYZ/myproject
  250 files checked.
  testMatch: **/__tests__/**/*.+(ts|js)?(x),**/+(*.)+(spec|test).+(ts|js)?(x) - 64 matches
  testPathIgnorePatterns: /node_modules/,/dist/,/projects/,/e2e/,/universal/ - 0 matches
Pattern:  - 0 matches

更多信息: enter image description here

0 个答案:

没有答案