Skip to content

Commit 83698e6

Browse files
committed
Replace istanbul with nyc
1 parent 4980330 commit 83698e6

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.DS_Store
22
*.log
3-
components/
3+
.nyc_output/
44
coverage/
55
node_modules/
66
hast-util-parse-selector.js

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"devDependencies": {
2525
"browserify": "^13.0.0",
2626
"esmangle": "^1.0.0",
27-
"istanbul": "^0.4.0",
27+
"nyc": "^8.4.0",
2828
"remark-cli": "^2.1.0",
2929
"remark-preset-wooorm": "^1.0.0",
3030
"tape": "^4.0.0",
@@ -37,7 +37,7 @@
3737
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
3838
"lint": "xo",
3939
"test-api": "node test.js",
40-
"test-coverage": "istanbul cover test.js",
40+
"test-coverage": "nyc --reporter lcov tape test.js",
4141
"test": "npm run build && npm run lint && npm run test-coverage"
4242
},
4343
"xo": {
@@ -46,6 +46,12 @@
4646
"hast-util-parse-selector.js"
4747
]
4848
},
49+
"nyc": {
50+
"check-coverage": true,
51+
"lines": 100,
52+
"functions": 100,
53+
"branches": 100
54+
},
4955
"remarkConfig": {
5056
"presets": "wooorm"
5157
}

0 commit comments

Comments
 (0)