Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
test我在 npm 中有以下任务:
test
"test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register 'test/**/*.ts'",
当我运行npm run test它时,它会执行测试,但在运行所有测试后,命令没有完成。
npm run test
有没有办法以在所有测试后完成的方式更改命令?
我最终--exit为摩卡添加了标志
--exit