Skip to content

Commit 6a1cdbd

Browse files
Simplified the "coverage" script by adding a .nycrc file
1 parent 53780ce commit 6a1cdbd

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.nycrc.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# NYC config
2+
# https://github.com/istanbuljs/nyc#configuration-files
3+
4+
extension:
5+
- .js
6+
- .ts
7+
8+
reporter:
9+
- text
10+
- lcov

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"test:browser": "karma start --single-run",
5050
"test:typescript": "tsc --noEmit test/specs/typescript.spec.ts",
5151
"coverage": "npm run coverage:node && npm run coverage:browser",
52-
"coverage:node": "nyc --reporter=text --reporter=lcov node_modules/mocha/bin/mocha",
52+
"coverage:node": "nyc node_modules/mocha/bin/mocha",
5353
"coverage:browser": "npm run test:browser -- --coverage",
5454
"upgrade": "npm-check -u && npm audit fix",
5555
"bump": "bump --tag --push --all",

0 commit comments

Comments
 (0)