Skip to content

Commit 9ee2c92

Browse files
committed
Add --source-map test param as a workaround for broken test coverage
The code coverage generated by ng test was erroneous, as per angular/angular-cli#11672 I'm passing in --source-map as a workaround until this is fixed in Angular cli.
1 parent dcfb824 commit 9ee2c92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"ghpages-compodoc-build-push": "npm run ghpages-build && npm run compodoc-generate && npm run ghpages-publish",
1616
"build-prod": "ng build --prod",
1717
"test-library": "ng test ng-loading-indicator",
18-
"test-library-coverage": "ng test ng-loading-indicator --code-coverage=true",
18+
"test-library-coverage": "ng test ng-loading-indicator --source-map --code-coverage=true",
1919
"build-test-library-coverage": "npm run build-prod && npm run test-library-coverage",
20-
"test:cover": "rm -rf ./coverage && ng test ng-loading-indicator --no-watch --code-coverage",
20+
"test:cover": "rm -rf ./coverage && ng test ng-loading-indicator --source-map --no-watch --code-coverage",
2121
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
2222
},
2323
"private": true,

0 commit comments

Comments
 (0)