Skip to content

Commit f5926bf

Browse files
committed
Adds optional COVERAGE
1 parent c6406b9 commit f5926bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"dev": "npm run build && bin/dev",
5757
"build": "./node_modules/.bin/babel src/ -d lib/",
5858
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} ./node_modules/.bin/mongodb-runner start",
59-
"test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node ./node_modules/babel-istanbul/lib/cli.js cover -x **/spec/** ./node_modules/jasmine/bin/jasmine.js",
59+
"test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node $([[ $COVERAGE == 1 ]] && echo './node_modules/babel-istanbul/lib/cli.js cover -x **/spec/**') ./node_modules/jasmine/bin/jasmine.js",
6060
"posttest": "mongodb-runner stop",
6161
"start": "./bin/parse-server",
6262
"prepublish": "npm run build"

0 commit comments

Comments
 (0)