Skip to content

Commit e702307

Browse files
ChristianMurphywooorm
authored andcommitted
Refactor coverage tests to use c8 instead of nyc
Closes GH-77. Reviewed-by: Titus Wormer <[email protected]>
1 parent 937ba71 commit e702307

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

package.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
},
4141
"devDependencies": {
4242
"browserify": "^16.0.0",
43+
"c8": "^6.0.1",
4344
"dtslint": "^1.0.2",
44-
"nyc": "^14.0.0",
4545
"prettier": "^1.0.0",
4646
"remark-cli": "^7.0.0",
4747
"remark-preset-wooorm": "^6.0.0",
@@ -56,16 +56,10 @@
5656
"build-mangle": "browserify index.js -s unified -p tinyify -o unified.min.js",
5757
"build": "npm run build-bundle && npm run build-mangle",
5858
"test-api": "node test",
59-
"test-coverage": "nyc --reporter lcov tape test",
59+
"test-coverage": "c8 --check-coverage --lines 100 --functions 100 --branches 100 --reporter lcov tape test",
6060
"test-types": "dtslint types",
6161
"test": "npm run format && npm run build && npm run test-coverage && npm run test-types"
6262
},
63-
"nyc": {
64-
"check-coverage": true,
65-
"lines": 100,
66-
"functions": 100,
67-
"branches": 100
68-
},
6963
"prettier": {
7064
"tabWidth": 2,
7165
"useTabs": false,

0 commit comments

Comments
 (0)