Skip to content

Commit 39e5a99

Browse files
committed
chore(test): update project blueprint to karma-remap-istanbul ^0.3.0 for coverage excludes
Update the project blueprint to allow specifying additional coverage excludes via the karma- istanbul-remap excludes property that was added in 0.3.0.
1 parent 0664beb commit 39e5a99

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ ng test
195195

196196
Tests will execute after a build is executed via [Karma](http://karma-runner.github.io/0.13/index.html), and it will automatically watch your files for changes. You can run tests a single time via `--watch=false` or `--single-run`.
197197

198-
You can run tests with coverage via `--code-coverage`. The coverage report will be in the `coverage/` directory.
198+
You can run tests with coverage via `--code-coverage`. The coverage report will be in the `coverage/` directory.
199+
If you would like to exclude files in addition to the default see how to update your `karma.conf.js` [here](https://github.com/marcules/karma-remap-istanbul/issues/26).
199200

200201
Linting during tests is also available via the `--lint` flag. See [Linting code](#linting-code) chapter for more information.
201202

packages/angular-cli/blueprints/ng2/files/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"karma-chrome-launcher": "^2.0.0",
3838
"karma-cli": "^1.0.1",
3939
"karma-jasmine": "^1.0.2",
40-
"karma-remap-istanbul": "^0.2.1",
40+
"karma-remap-istanbul": "^0.3.0",
4141
"protractor": "~4.0.13",
4242
"ts-node": "1.2.1",
4343
"tslint": "^4.3.0",

0 commit comments

Comments
 (0)