Skip to content

Commit 4cfa1eb

Browse files
Simplified the "coverage" script by adding a .nycrc file
1 parent 2a8607f commit 4cfa1eb

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
@@ -44,7 +44,7 @@
4444
"test:node": "mocha",
4545
"test:browser": "karma start --single-run",
4646
"coverage": "npm run coverage:node && npm run coverage:browser",
47-
"coverage:node": "nyc --reporter=text --reporter=lcov node_modules/mocha/bin/mocha",
47+
"coverage:node": "nyc node_modules/mocha/bin/mocha",
4848
"coverage:browser": "npm run test:browser -- --coverage",
4949
"upgrade": "npm-check -u && npm audit fix",
5050
"bump": "bump --tag --push --all",

0 commit comments

Comments
 (0)