Skip to content

Commit

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

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

4 changes: 2 additions & 2 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 @@ -40,8 +40,8 @@
"eslint-config-hexo": "^3.0.0",
"hexo": "^3.8.0",
"hexo-fs": "^1.0.2",
"istanbul": "^0.4.5",
"mocha": "^6.1.4",
"nyc": "^14.1.1",
"sinon": "^7.3.2",
"supertest": "^4.0.2",
"supertest-promised": "^1.0.0",
Expand Down

0 comments on commit f65ff47

Please sign in to comment.