`react-scripts test`返回代码总是为零

时间:2017-11-15 21:28:23

标签: node.js reactjs testing continuous-integration travis-ci

当测试失败时,是否有人知道yarn test应用中的npm test(或react)如何返回非零代码

在我的项目中,执行CI=true yarn test返回

Test Suites: 10 failed, 10 total
Tests:       1 failed, 1 total
Snapshots:   0 total
Time:        1.736s
Ran all test suites.
Done in 2.34s.

所有测试都失败了。但该命令返回零代码。

这使travis-ci无法检测失败的测试

0 个答案:

没有答案