Skip to content

Commit 41e6c78

Browse files
committed
Replace istanbul with nyc
1 parent 55f7720 commit 41e6c78

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-to-html.js

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"bundle-collapser": "^1.2.1",
3838
"esmangle": "^1.0.1",
3939
"hastscript": "^3.0.0",
40-
"istanbul": "^0.4.0",
40+
"nyc": "^7.1.0",
4141
"remark-cli": "^1.0.0",
4242
"remark-comment-config": "^4.0.0",
4343
"remark-github": "^5.0.0",
@@ -55,7 +55,7 @@
5555
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
5656
"lint": "xo",
5757
"test-api": "node test",
58-
"test-coverage": "istanbul cover test",
58+
"test-coverage": "nyc --reporter lcov tape test",
5959
"test": "npm run build && npm run lint && npm run test-coverage"
6060
},
6161
"xo": {
@@ -70,6 +70,12 @@
7070
"hast-util-to-html.min.js"
7171
]
7272
},
73+
"nyc": {
74+
"check-coverage": true,
75+
"lines": 100,
76+
"functions": 100,
77+
"branches": 100
78+
},
7379
"remarkConfig": {
7480
"output": true,
7581
"plugins": [

0 commit comments

Comments
 (0)