【发布时间】:2017-11-09 03:17:52
【问题描述】:
尝试在我的 bitbucket 管道构建中运行 npm 测试脚本,所有测试都通过了,但随后就挂起并且没有移动到下一个脚本。
所以我的测试脚本是:"test": "mocha src/**/*.spec.ts --require ts-node/register --reporter spec",
在我的bitbucket-pipelines.yml 文件中被调用
- yarn install
- yarn run test
- yarn run prestart:prod
因此,yarn install 运行,yarn test 运行但随后挂起并运行 prestart:prod 永远不会运行。
它会挂起的任何原因?我需要设置--watch=false 还是什么?
【问题讨论】: