Skip to content

Commit 992e2e0

Browse files
author
Thomas Reggi
authored
fix: coverage
NODE-2720
1 parent ea83bf5 commit 992e2e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.nycrc.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"extends": "@istanbuljs/nyc-config-typescript",
3-
"include": ["src/**/*.ts"],
4-
"reporter": ["lcovonly", "text-summary"]
3+
"reporter": ["lcovonly", "text-summary", "html"]
54
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@
8181
"build": "npm run build:dts && npm run build:bundle",
8282
"lint": "eslint -v && eslint --ext '.js,.ts' --max-warnings=0 src test && tsc -v && tsc --noEmit",
8383
"format": "eslint --ext '.js,.ts' src test --fix",
84-
"coverage": "nyc mocha test/node",
84+
"coverage": "nyc npm run test-node",
85+
"coverage:html": "npm run coverage && open ./coverage/index.html",
8586
"prepare": "node etc/prepare.js",
8687
"release": "standard-version -i HISTORY.md"
8788
},

0 commit comments

Comments
 (0)