Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 6fe4583

Browse files
committed
Replace istanbul with nyc
1 parent d7d867e commit 6fe4583

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
hast-to-hyperscript.js

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"circular.js": "^2.0.3",
3939
"esmangle": "^1.0.0",
4040
"hyperscript": "^2.0.2",
41-
"istanbul": "^0.4.0",
41+
"nyc": "^8.4.0",
4242
"react": "^15.1.0",
4343
"remark-cli": "^2.1.0",
4444
"remark-preset-wooorm": "^1.0.0",
@@ -53,10 +53,16 @@
5353
"build-mangle": "esmangle hast-to-hyperscript.js > hast-to-hyperscript.min.js",
5454
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
5555
"lint": "xo",
56-
"test-api": "node test.js",
57-
"test-coverage": "istanbul cover test.js",
56+
"test-api": "node test",
57+
"test-coverage": "nyc --reporter lcov tape test.js",
5858
"test": "npm run build && npm run lint && npm run test-coverage"
5959
},
60+
"nyc": {
61+
"check-coverage": true,
62+
"lines": 100,
63+
"functions": 100,
64+
"branches": 100
65+
},
6066
"xo": {
6167
"space": true,
6268
"rules": {

0 commit comments

Comments
 (0)