Skip to content

Commit

Permalink
Use c8 for coverage in place of nyc
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisveness committed Apr 22, 2020
1 parent 7125589 commit a7e676d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ os:
- windows

after_success:
- ESM_DISABLE_CACHE=1 nyc --cache=false npm test # 1st run fails, so force report by running nyc twice; github.com/istanbuljs/nyc/issues/993
- ESM_DISABLE_CACHE=1 nyc --cache=false npm test && nyc report --reporter=text-lcov | coveralls
- c8 -r text-lcov npm test | coveralls
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
"scripts": {
"test": "mocha --exit -r esm test/*.js",
"lint": "eslint .",
"cover": "nyc --reporter=html npm test; rm -r ./.nyc_output",
"cover": "c8 -r html npm test",
"docs": "jsdoc *.js README.md -d ../../geodesy/docs"
},
"devDependencies": {
"babel-eslint": "^10.0.0",
"c8": "^7.0.0",
"chai": "^4.0.0",
"coveralls": "^3.0.0",
"eslint": "^6.0.0",
"esm": "^3.0.0",
"jsdoc": "^3.0.0",
"mocha": "^6.0.0",
"nyc": "^14.0.0"
"mocha": "^6.0.0"
},
"eslintConfig": {
"env": {
Expand Down Expand Up @@ -68,7 +68,7 @@
"strict": [ "error", "global" ]
}
},
"files": [
"files": [
"dms.js",
"latlon-*.js",
"mgrs.js",
Expand Down

0 comments on commit a7e676d

Please sign in to comment.