Skip to content

Commit ea076c1

Browse files
Simplified the "coverage" script by adding a .nycrc.yml file
1 parent f98e449 commit ea076c1

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
@@ -43,7 +43,7 @@
4343
"test:browser": "karma start --single-run",
4444
"test:typescript": "tsc --noEmit --strict --lib esnext test/specs/typescript-definition.spec.ts",
4545
"coverage": "npm run coverage:node && npm run coverage:browser",
46-
"coverage:node": "nyc --reporter=text --reporter=lcov --report-dir coverage/node node_modules/mocha/bin/mocha",
46+
"coverage:node": "nyc node_modules/mocha/bin/mocha",
4747
"coverage:browser": "npm run test:browser -- --coverage",
4848
"upgrade": "npm-check -u && npm audit fix",
4949
"bump": "bump --tag --push --all",

0 commit comments

Comments
 (0)