Skip to content

Commit 3f21441

Browse files
committed
Replace istanbul with nyc
1 parent a987271 commit 3f21441

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
*.log
3+
.nyc_output/
34
coverage/
45
node_modules/
56
mdast-util-to-string.js

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"devDependencies": {
2929
"browserify": "^13.0.0",
3030
"esmangle": "^1.0.0",
31-
"istanbul": "^0.4.0",
31+
"nyc": "^8.4.0",
3232
"remark-cli": "^1.0.0",
3333
"remark-comment-config": "^4.0.0",
3434
"remark-github": "^5.0.0",
@@ -45,13 +45,19 @@
4545
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
4646
"lint": "xo",
4747
"test-api": "node test.js",
48-
"test-coverage": "istanbul cover test.js",
48+
"test-coverage": "nyc --reporter lcov tape test.js",
4949
"test": "npm run build && npm run lint && npm run test-coverage"
5050
},
5151
"xo": {
5252
"space": true,
5353
"ignore": [
5454
"mdast-util-to-string.js"
5555
]
56+
},
57+
"nyc": {
58+
"check-coverage": true,
59+
"lines": 100,
60+
"functions": 100,
61+
"branches": 100
5662
}
5763
}

0 commit comments

Comments
 (0)