我的package.json包含以下脚本:
"test:ci": "ng test --no-watch --no-progress --browsers ChromeHeadless"
如果我运行 npm运行test:ci ,则所有测试均通过,但退出
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! exotics-client@0.0.0 test:ci: `ng test --no-watch --no-progress --browsers ChromeHeadless`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the exotics-client@0.0.0 test:ci script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
如果我改为跑步
ng test --no-watch --no-progress --browsers ChromeHeadless
不使用npm,所有测试都会再次通过,而且返回错误也没有。
还有其他人看到过这个问题吗?知道是什么原因造成的吗?