我正在使用 Jest 来执行单元测试。
"jest": "^26.4.2",
"jest-preset-angular": "^8.3.1"
所有测试都已通过并运行但出现如下错误
Test Suites: 20 passed, 20 total
Tests: 26 passed, 26 total
Snapshots: 2 obsolete, 5 passed, 5 total
Time: 92.961 s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! idp@0.0.0 test:app: `jest --config ./jest.app.config.js --no-cache`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the idp@0.0.0 test:app script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/macbook/.npm/_logs/2020-09-15T09_19_42_790Z-debug.log
我从谷歌搜索中尝试了以下命令,但是它不起作用
npm cache clean --force
rm -rf node_modules
npm install
收到一只叮咚
至尊宝的传说
哈士奇WWW
相关分类