Skip to content

Commit a960442

Browse files
committed
Replace istanbul with nyc
1 parent 074af38 commit a960442

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
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-comment-marker.js

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"devDependencies": {
2424
"browserify": "^14.0.0",
2525
"esmangle": "^1.0.0",
26-
"istanbul": "^0.4.0",
26+
"nyc": "^10.3.2",
2727
"remark-cli": "^3.0.0",
2828
"remark-preset-wooorm": "^3.0.0",
2929
"tape": "^4.0.0",
@@ -35,10 +35,16 @@
3535
"build-mangle": "esmangle mdast-comment-marker.js > mdast-comment-marker.min.js",
3636
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
3737
"lint": "xo",
38-
"test-api": "node test.js",
39-
"test-coverage": "istanbul cover test.js",
38+
"test-api": "node test",
39+
"test-coverage": "nyc --reporter lcov tape test.js",
4040
"test": "npm run build && npm run lint && npm run test-coverage"
4141
},
42+
"nyc": {
43+
"check-coverage": true,
44+
"lines": 100,
45+
"functions": 100,
46+
"branches": 100
47+
},
4248
"xo": {
4349
"space": true,
4450
"esnext": false,

0 commit comments

Comments
 (0)