Jest:没有可用的文件覆盖范围

时间:2017-12-18 14:58:56

标签: babel jest istanbul babel-jest

更新到jest 22和babel jest 22后,我在每个测试套件上都出现以下错误:

Test suite failed to run

No file coverage available for: /src/store/__tests__/medias.js

at CoverageMap.fileCoverageFor (node_modules/istanbul-lib-coverage/lib/coverage-map.js:96:15)
      at Array.forEach (<anonymous>)

我该如何解决?

谢谢

1 个答案:

答案 0 :(得分:1)

看起来这是一个错误。跟踪状态:https://github.com/facebook/jest/issues/5109