2016-12-05 76 views
1

我曾经使用npm,但最近切换到纱线。当我运行yarn test它显示了所有的测试通过,但低于上什么原因可能造成此错误纱线测试:所有测试通过但返回“错误命令失败,退出代码1”

节点版本没有任何其他信息说error Command failed with exit code 1:6.3.1

纱版本:0.16.3

潜在原因 console.error node_modules/core-js/modules/es6.promise.js:117 Unhandled promise rejection Error: Actions may not be an undefined. at dispatch (/node_modules/redux-mock-store/lib/index.js:35:19) at /node_modules/redux-thunk/lib/index.js:14:16 at dispatch (/node_modules/redux/lib/applyMiddleware.js:45:18) at /src/actions/ontologies.js:159:7 at run (/node_modules/core-js/modules/es6.promise.js:87:22) at /node_modules/core-js/modules/es6.promise.js:100:28 at flush (/node_modules/core-js/modules/_microtask.js:18:9) at process._tickCallback (internal/process/next_tick.js:103:7)

+0

如果可能,你是否尝试过更新到Yarn v0.18.0?自0.16.3以来,错误报告可能有所改进。 – Aurora0001

+0

是的,我做了,但没有改变 – danep

+0

你可以发布整个输出,以防万一你错过了什么吗? – Aurora0001

回答

0

答案:

错误代码是由于线覆盖低于予定义的值(90%)。它已经告诉我line coverage 86.8% is below user defined value of 90%,所以我认为纱线不太可能“双重报告”那个错误。