升级到开玩笑26后测试覆盖率结果下降

时间:2020-05-14 23:49:15

标签: node.js typescript jestjs code-coverage

我最近将最新的Jest版本引入了一个node / typescript项目,而我们之前的100%测试覆盖率(woo)下降了。

获得25个覆盖率结果(稍作更改后):

Jest: "global" coverage threshold for statements (100%) not met: 99.83%
Jest: "global" coverage threshold for branches (100%) not met: 99.05%
Jest: "global" coverage threshold for lines (100%) not met: 99.81%

最多26个覆盖范围结果:

Jest: "global" coverage threshold for statements (100%) not met: 84.21%
Jest: "global" coverage threshold for branches (100%) not met: 68.02%
Jest: "global" coverage threshold for lines (100%) not met: 94.25%
Jest: "global" coverage threshold for functions (100%) not met: 86.44%

如果有人对更改的原因有深入的了解,我将非常感兴趣。在release notes

中,我看不到任何突出之处

0 个答案:

没有答案