“unit”: “jest --config test/unit/jest.conf.js”,
执行npm run unit
报错
Test suite failed to run
TypeError: Cannot destructure property 'config' of 'cacheKeyOptions' as it is undefined.
at Object.getCacheKey (node_modules/babel-jest/build/index.js:196:14)
原因是Jest版本不对
安装npm i -g jest@26.6.3成功解决