Skip to content

Commit

Permalink
chore(deps-dev): replace deprecated istanbul with nyc (#3570)
Browse files Browse the repository at this point in the history
* chore(deps): replace deprecated istanbul with nyc
* test: integrate nyc with coveralls
* chore: ignore nyc output
  • Loading branch information
curbengh authored and yoshinorin committed Jun 6, 2019
1 parent 1b432c3 commit 61781ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ node_modules/
tmp/
*.log
.idea/
coverage/
yarn.lock
package-lock.json
package-lock.json
.nyc_output/
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ script:

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

dist: trusty
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"eslint": "eslint-ci .",
"test": "mocha test/index.js",
"test-cov": "istanbul cover --print both _mocha -- test/index.js",
"test-cov": "nyc npm run test",
"lint-staged": "lint-staged"
},
"directories": {
Expand Down Expand Up @@ -72,9 +72,9 @@
"eslint-config-hexo": "^3.0.0",
"hexo-renderer-marked": "^1.0.1",
"husky": "^1.1.3",
"istanbul": "^0.4.3",
"lint-staged": "^8.1.0",
"mocha": "^6.0.0",
"nyc": "^14.1.1",
"rewire": "^4.0.1",
"sinon": "^7.1.1"
},
Expand Down

0 comments on commit 61781ad

Please sign in to comment.