Skip to content

Commit 5405e76

Browse files
committed
Replace istanbul with nyc
1 parent 3b09730 commit 5405e76

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-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
nlcst-emoticon-modifier.js

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"emoticon": "^2.0.0",
2424
"esmangle": "^1.0.0",
2525
"is-hidden": "^1.1.0",
26-
"istanbul": "^0.4.0",
2726
"negate": "^1.0.0",
27+
"nyc": "^9.0.1",
2828
"remark-cli": "^2.1.0",
2929
"remark-preset-wooorm": "^1.0.0",
3030
"retext": "^4.0.0",
@@ -34,8 +34,7 @@
3434
},
3535
"scripts": {
3636
"test-api": "node test",
37-
"test-coverage": "istanbul cover tape test/index.js",
38-
"test-travis": "npm run test-coverage",
37+
"test-coverage": "nyc --reporter lcov tape test/index.js",
3938
"test": "npm run test-api",
4039
"lint": "xo",
4140
"make": "npm run lint && npm run test-coverage",
@@ -45,6 +44,12 @@
4544
"build-md": "remark . --quiet --frail --output",
4645
"build": "npm run build-data && npm run bundle && npm run build-md"
4746
},
47+
"nyc": {
48+
"check-coverage": true,
49+
"lines": 100,
50+
"functions": 100,
51+
"branches": 100
52+
},
4853
"xo": {
4954
"space": true,
5055
"rules": {

0 commit comments

Comments
 (0)