【问题标题】:Jest: No file coverage available开玩笑:没有可用的文件覆盖范围
【发布时间】:2018-05-31 22:47:55
【问题描述】:

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

我该如何解决这个问题?

谢谢

【问题讨论】:

    标签: babeljs jestjs istanbul babel-jest


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2019-07-12
      • 1970-01-01
      • 2020-08-11
      • 2017-07-15
      • 2020-01-12
      • 1970-01-01
      • 2020-03-29
      • 1970-01-01
      • 2019-09-01
      相关资源
      最近更新 更多