Skip to content

Commit 48f56eb

Browse files
committed
Replace istanbul with nyc
1 parent a82d96b commit 48f56eb

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
hast-util-whitespace.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.1",
31-
"istanbul": "^0.4.0",
31+
"nyc": "^8.4.0",
3232
"remark-cli": "^2.1.0",
3333
"remark-preset-wooorm": "^1.0.0",
3434
"tape": "^4.4.0",
@@ -41,7 +41,7 @@
4141
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
4242
"lint": "xo",
4343
"test-api": "node test.js",
44-
"test-coverage": "istanbul cover test.js",
44+
"test-coverage": "nyc --reporter lcov tape test.js",
4545
"test": "npm run build && npm run lint && npm run test-coverage"
4646
},
4747
"xo": {
@@ -50,6 +50,12 @@
5050
"hast-util-is-element.js"
5151
]
5252
},
53+
"nyc": {
54+
"check-coverage": true,
55+
"lines": 100,
56+
"functions": 100,
57+
"branches": 100
58+
},
5359
"remarkConfig": {
5460
"presets": "wooorm"
5561
}

0 commit comments

Comments
 (0)