Angular 17 跳过生成"spec.ts"文件,命令如下:
--skip-tests:Do not generate "spec.ts" test files for the new project. Aliases: -S
"schematics": {
"@schematics/angular:class": {
"skipTests": true
},
"@schematics/angular:component": {
"skipTests": true,
"standalone": false
},
"@schematics/angular:directive": {
"skipTests": true,
"standalone": false
},
"@schematics/angular:guard": {
"skipTests": true
},
"@schematics/angular:interceptor": {
"skipTests": true
},
"@schematics/angular:pipe": {
"skipTests": true,
"standalone": false
},
"@schematics/angular:resolver": {
"skipTests": true
},
"@schematics/angular:service": {
"skipTests": true
}
}
|