Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit fc42cc1

Browse files
committed
Switch 'isparta' for 'nyc'
1 parent d09c745 commit fc42cc1

File tree

3 files changed

+457
-199
lines changed

3 files changed

+457
-199
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ before_install:
2626
- npm config set spin false --global
2727

2828
script:
29-
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then npm run lint && npm run check && npm run cover:lcov; else npm run testonly; fi
29+
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then npm run lint && npm run check && npm run cover; else npm run testonly; fi
3030

3131
after_failure:
3232
- (cd resources; python travis_after_all.py)

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@
5151
"build": "rm -rf dist/* && babel src --ignore __tests__ --out-dir dist && npm run build:flow",
5252
"build:flow": "find ./src -name '*.js' -not -path '*/__tests__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/dist\\//g'`.flow; done",
5353
"watch": "node resources/watch.js",
54-
"cover": "babel-node node_modules/.bin/isparta cover --root src --report html node_modules/.bin/_mocha -- $npm_package_options_mocha",
55-
"cover:lcov": "babel-node node_modules/.bin/isparta cover --root src --report lcovonly node_modules/.bin/_mocha -- $npm_package_options_mocha",
54+
"cover": "nyc npm run testonly",
5655
"preversion": "npm test",
5756
"start": "node -r babel-register examples/index.js"
5857
},
@@ -78,9 +77,9 @@
7877
"express": "4.16.4",
7978
"flow-bin": "0.96.0",
8079
"graphql": "14.3.0",
81-
"isparta": "4.1.1",
8280
"mocha": "6.1.4",
8381
"multer": "1.4.1",
82+
"nyc": "14.1.1",
8483
"prettier": "1.17.1",
8584
"restify": "4.3.2",
8685
"sane": "4.1.0",

0 commit comments

Comments
 (0)