Skip to content

Commit f7027ce

Browse files
Simplified the "coverage" script by adding a .nycrc file
1 parent 033cbd0 commit f7027ce

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
@@ -39,7 +39,7 @@
3939
"build": "tsc",
4040
"watch": "tsc --watch",
4141
"test": "mocha && npm run lint",
42-
"coverage": "nyc --reporter=text --reporter=lcov node_modules/mocha/bin/mocha",
42+
"coverage": "nyc node_modules/mocha/bin/mocha",
4343
"upgrade": "npm-check -u && npm audit fix",
4444
"bump": "bump --tag --push --all",
4545
"release": "npm run upgrade && npm run clean && npm run build && npm test && npm run bump"

0 commit comments

Comments
 (0)