Skip to content

Commit 1716d2a

Browse files
committedJul 30, 2019
test: replace istanbul with nyc
1 parent 571e1b9 commit 1716d2a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ node_modules/
33
tmp/
44
*.log
55
.idea/
6-
coverage/
6+
.nyc_output/
77
package-lock.json

‎.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ script:
1818

1919
after_script:
2020
- npm install coveralls
21-
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
21+
- nyc report --reporter=text-lcov | coveralls

‎package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"eslint": "eslint .",
88
"test": "mocha test/index.js",
9-
"test-cov": "istanbul cover _mocha --print both test/index.js"
9+
"test-cov": "nyc npm run test"
1010
},
1111
"directories": {
1212
"lib": "./lib"
@@ -38,8 +38,8 @@
3838
"eslint": "^5.16.0",
3939
"eslint-config-hexo": "^3.0.0",
4040
"iferr": "^1.0.2",
41-
"istanbul": "^0.4.5",
42-
"mocha": "^6.0.2"
41+
"mocha": "^6.0.2",
42+
"nyc": "^14.1.1"
4343
},
4444
"engines": {
4545
"node": ">=8"

0 commit comments

Comments
 (0)
Please sign in to comment.