Skip to content

Commit e5af10a

Browse files
committed
Replace istanbul with nyc
1 parent 2b84ad3 commit e5af10a

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,6 +1,7 @@
11
.DS_Store
22
*.log
33
coverage/
4+
.nyc_output/
45
node_modules/
56
hast-util-script-supporting.js
67
hast-util-script-supporting.min.js

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"devDependencies": {
2828
"browserify": "^14.0.0",
2929
"esmangle": "^1.0.1",
30-
"istanbul": "^0.4.0",
30+
"nyc": "^10.3.0",
3131
"remark-cli": "^3.0.0",
3232
"remark-preset-wooorm": "^2.0.0",
3333
"tape": "^4.4.0",
@@ -40,9 +40,15 @@
4040
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
4141
"lint": "xo",
4242
"test-api": "node test.js",
43-
"test-coverage": "istanbul cover test.js",
43+
"test-coverage": "nyc --reporter lcov tape test.js",
4444
"test": "npm run build && npm run lint && npm run test-coverage"
4545
},
46+
"nyc": {
47+
"check-coverage": true,
48+
"lines": 100,
49+
"functions": 100,
50+
"branches": 100
51+
},
4652
"xo": {
4753
"space": true,
4854
"esnext": false,

0 commit comments

Comments
 (0)