Skip to content

Commit

Permalink
test: replace istanbul with nyc (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh authored and yoshinorin committed Jul 21, 2019
1 parent c6ecb84 commit a8feb49
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ node_modules/
tmp/
*.log
.idea/
coverage/
.nyc_output/
package-lock.json
yarn.lock
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ script:

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"eslint": "eslint .",
"test": "mocha test/index.js",
"test-cov": "istanbul cover --print both _mocha -- test/index.js"
"test-cov": "nyc npm run test"
},
"directories": {
"lib": "./lib"
Expand Down Expand Up @@ -41,8 +41,8 @@
"eslint": "^6.0.1",
"eslint-config-hexo": "^3.0.0",
"hexo": "^3.3.1",
"istanbul": "^0.4.5",
"mocha": "^6.0.2"
"mocha": "^6.0.2",
"nyc": "14.1.1"
},
"engines": {
"node": ">=8.6.0"
Expand Down

0 comments on commit a8feb49

Please sign in to comment.