Angular 使用Jest的ng测试在npm包上使用objValue.concat失败

Angular 使用Jest的ng测试在npm包上使用objValue.concat失败,angular,jestjs,lodash,Angular,Jestjs,Lodash,当我运行ng test(使用Jest)时,我得到以下错误: 发生未处理的异常:objValue.concat不是函数 正在检查日志文件: [error] TypeError: objValue.concat is not a function at concatArrayProperties (D:\...node_modules\@angular-builders\jest\dist\jest-configuration-builder.js:22:21) at baseMer

当我运行
ng test
(使用Jest)时,我得到以下错误:

发生未处理的异常:objValue.concat不是函数

正在检查日志文件:

[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。

检查您的“jest预设角度”版本,在package.json上。它被设置为最新的稳定版本(8.3.1)。我在下一次(9.0.0-next.0)尝试了它,但也没有帮助。我在使用“jest preset angular”时遇到了相同的问题:“^8.2.1”当我更改为“jest preset angular”:“8.2.1”,但没有^it解决了问题。