Skip to content

Commit 8ccc1df

Browse files
authored
test: replace istanbul with nyc
2 parents 1e5dc84 + 5941f83 commit 8ccc1df

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ node_modules/
33
tmp/
44
*.log
55
.idea/
6-
coverage/
6+
.nyc_output/

.travis.yml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 3 deletions
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 --print both _mocha -- test/index.js"
9+
"test-cov": "nyc npm run test"
1010
},
1111
"directories": {
1212
"lib": "./lib"
@@ -37,8 +37,8 @@
3737
"eslint": "^6.0.1",
3838
"babel-eslint": "^10.0.1",
3939
"eslint-config-hexo": "^3.0.0",
40-
"istanbul": "^0.4.5",
41-
"mocha": "^6.1.4"
40+
"mocha": "^6.1.4",
41+
"nyc": "^14.1.1"
4242
},
4343
"engines": {
4444
"node": ">=8.6.0"

0 commit comments

Comments
 (0)