Skip to content

Commit f100395

Browse files
committed
Replace istanbul with nyc
1 parent 7eda270 commit f100395

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
unist-util-generated.js

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"devDependencies": {
2727
"browserify": "^13.0.0",
2828
"esmangle": "^1.0.0",
29-
"istanbul": "^0.4.0",
29+
"nyc": "^9.0.1",
3030
"remark-cli": "^2.1.0",
3131
"remark-preset-wooorm": "^1.0.0",
3232
"tape": "^4.5.1",
@@ -38,10 +38,16 @@
3838
"build-mangle": "esmangle unist-util-generated.js > unist-util-generated.min.js",
3939
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
4040
"lint": "xo",
41-
"test-api": "node test.js",
42-
"test-coverage": "istanbul cover test.js",
41+
"test-api": "node test",
42+
"test-coverage": "nyc --reporter lcov tape test.js",
4343
"test": "npm run build && npm run lint && npm run test-coverage"
4444
},
45+
"nyc": {
46+
"check-coverage": true,
47+
"lines": 100,
48+
"functions": 100,
49+
"branches": 100
50+
},
4551
"xo": {
4652
"space": true,
4753
"ignores": [

0 commit comments

Comments
 (0)