angular.json tests configs
"test": { | |
"builder": "@angular-devkit/build-angular:karma", | |
"options": { | |
"main": "src/test.ts", | |
"karmaConfig": "./karma.conf.js", | |
"polyfills": "src/polyfills.ts", | |
"tsConfig": "src/tsconfig.spec.json", | |
"scripts": [ | |
"node_modules/zone.js/dist/zone-testing.js" | |
], | |
"styles": [ | |
"node_modules/css-spaces/dist/spaces.min.css", | |
"src/styles.scss" | |
], | |
"assets": [ | |
"src/assets", | |
"src/favicon.ico" | |
], | |
"watch": false, | |
"codeCoverage": true | |
}, | |
"configurations": { | |
"unit": { | |
"main": "src/test.unit.ts", | |
"tsConfig": "src/tsconfig.unit.spec.json" | |
}, | |
"unit-watch": { | |
"main": "src/test.unit.ts", | |
"tsConfig": "src/tsconfig.unit.spec.json", | |
"watch": true | |
}, | |
"integration": { | |
"main": "src/test.integration.ts", | |
"tsConfig": "src/tsconfig.spec.json" | |
}, | |
"integration-watch": { | |
"main": "src/test.integration.ts", | |
"tsConfig": "src/tsconfig.spec.json", | |
"watch": true | |
}, | |
"all-watch": { | |
"main": "src/test.ts", | |
"tsConfig": "src/tsconfig.spec.json", | |
"watch": true | |
}, | |
"production": { | |
"karmaConfig": "./karma-ci.conf.js", | |
"progress": false | |
} | |
} | |
}, | |
"lint": { | |
"builder": "@angular-devkit/build-angular:tslint", | |
"options": { | |
"typeCheck": true, | |
"fix": true, | |
"tsConfig": [ | |
"src/tsconfig.app.json", | |
"src/tsconfig.spec.json" | |
], | |
"exclude": [] | |
} | |
} | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment