我曾經使用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)
如果可能,你是否嘗試過更新到Yarn v0.18.0?自0.16.3以來,錯誤報告可能有所改進。 – Aurora0001
是的,我做了,但沒有改變 – danep
你可以發佈整個輸出,以防萬一你錯過了什麼嗎? – Aurora0001