我已经将我的项目从angular 12更新到angular 13,当我执行ng测试时,我有以下错误:
Schema validation failed with the following errors:
Data path "/tsconfig" must be array
有人能帮忙吗?
所以是的,我发现了问题在我们的角度。Json test:tsconfig需要是一个数组而不是字符串,所以:
"test": {
"builder": "@angular-builders/jest:run",
"options": {
"detectOpenHandles": true,
"coverage": true,
"tsconfig": "tsconfig.spec.json"
}
},
这样做:
"test": {
"builder": "@angular-builders/jest:run",
"options": {
"detectOpenHandles": true,
"coverage": true,
"tsconfig": ["tsconfig.spec.json"] // <-notice the array
}
}