Skip to content

Commit 8225be3

Browse files
committed
Replace istanbul with nyc
1 parent 95c1d84 commit 8225be3

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.gitignore

+1
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
unist-util-stringify-position.js

package.json

+9-3
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": "^9.0.1",
3232
"remark-cli": "^2.0.0",
3333
"remark-preset-wooorm": "^1.0.0",
3434
"tape": "^4.5.1",
@@ -40,10 +40,16 @@
4040
"build-mangle": "esmangle unist-util-stringify-position.js > unist-util-stringify-position.min.js",
4141
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
4242
"lint": "xo",
43-
"test-api": "node test.js",
44-
"test-coverage": "istanbul cover test.js",
43+
"test-api": "node test",
44+
"test-coverage": "nyc --reporter lcov tape test.js",
4545
"test": "npm run build && npm run lint && npm run test-coverage"
4646
},
47+
"nyc": {
48+
"check-coverage": true,
49+
"lines": 100,
50+
"functions": 100,
51+
"branches": 100
52+
},
4753
"xo": {
4854
"space": true,
4955
"ignores": [

0 commit comments

Comments
 (0)