Skip to content

Commit 7737ea4

Browse files
committed
Replace istanbul with nyc
1 parent 15e9960 commit 7737ea4

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-embedded.js

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"devDependencies": {
3030
"browserify": "^13.0.0",
3131
"esmangle": "^1.0.1",
32-
"istanbul": "^0.4.0",
32+
"nyc": "^8.4.0",
3333
"remark-cli": "^2.1.0",
3434
"remark-preset-wooorm": "^1.0.0",
3535
"tape": "^4.4.0",
@@ -42,9 +42,15 @@
4242
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
4343
"lint": "xo",
4444
"test-api": "node test.js",
45-
"test-coverage": "istanbul cover test.js",
45+
"test-coverage": "nyc --reporter lcov tape test.js",
4646
"test": "npm run build && npm run lint && npm run test-coverage"
4747
},
48+
"nyc": {
49+
"check-coverage": true,
50+
"lines": 100,
51+
"functions": 100,
52+
"branches": 100
53+
},
4854
"xo": {
4955
"space": true,
5056
"ignore": [

0 commit comments

Comments
 (0)