开玩笑:没有可用的文件覆盖率

Jest: No file coverage available

更新到 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>)

我该如何解决?

谢谢

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