Skip to content

Commit 4f15d00

Browse files
committed
[Tests] use nyc for coverage
1 parent ebcdc40 commit 4f15d00

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ node_modules
55
npm-shrinkwrap.json
66
package-lock.json
77
yarn.lock
8+
9+
.nyc_output/
10+
coverage/

.nycrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"all": true,
3+
"check-coverage": false,
4+
"reporter": ["text-summary", "text", "html", "json"],
5+
"lines": 86,
6+
"statements": 85.93,
7+
"functions": 82.43,
8+
"branches": 76.06,
9+
"exclude": [
10+
"coverage",
11+
"dist"
12+
]
13+
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"pretest": "npm run lint",
1111
"test": "npm run tests-only",
1212
"posttest": "aud --production",
13-
"tests-only": "covert test",
13+
"tests-only": "nyc tape 'test/**/*.js'",
1414
"lint": "eslint --ext=js,mjs ."
1515
},
1616
"contributors": [
@@ -31,8 +31,8 @@
3131
"devDependencies": {
3232
"@ljharb/eslint-config": "^20.1.0",
3333
"aud": "^1.1.5",
34-
"covert": "^1.1.1",
3534
"eslint": "^8.6.0",
35+
"nyc": "^10.3.2",
3636
"safe-publish-latest": "^2.0.0",
3737
"tape": "^4.14.0"
3838
},

0 commit comments

Comments
 (0)