当我运行ng test
(使用Jest)时,我得到这个错误:
An unhandled exception occurred: objValue.concat is not a function
正在检查日志文件:
[error] TypeError: objValue.concat is not a function
at concatArrayProperties (D:\...node_modules\@angular-builders\jest\dist\jest-configuration-builder.js:22:21)
at baseMergeDeep (D:\...\node_modules\lodash\lodash.js:3643:11)
at D:\...\node_modules\lodash\lodash.js:3603:11
at D:\...\node_modules\lodash\lodash.js:4905:15
at baseMerge (D:\...\node_modules\lodash\lodash.js:3600:7)
at baseMergeDeep (D:\...\node_modules\lodash\lodash.js:3689:9)
at D:\...\node_modules\lodash\lodash.js:3603:11
at D:\...\node_modules\lodash\lodash.js:4905:15
at baseMerge (D:\...\node_modules\lodash\lodash.js:3600:7)
at baseMergeDeep (D:\...\node_modules\lodash\lodash.js:3689:9)
注意:...
用于隐藏敏感信息
我不明白为什么突然开始发生这种情况,或者至少不知道如何让jest忽略lodash。
发布于 2020-10-20 14:24:23
在package.json上检查你的"jest-preset-angular“版本
https://stackoverflow.com/questions/63959606
复制