From ec8529ada7a68e95f38d53fc2c58548c6f93be71 Mon Sep 17 00:00:00 2001 From: Florent Vilmart Date: Thu, 3 Mar 2016 14:32:15 -0500 Subject: [PATCH] fixes missing coverage with sh script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a31014a6..89a22e85 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "dev": "npm run build && bin/dev", "build": "./node_modules/.bin/babel src/ -d lib/", "pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} ./node_modules/.bin/mongodb-runner start", - "test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node $([[ $CODE_COVERAGE == 1 ]] && echo './node_modules/babel-istanbul/lib/cli.js cover -x **/spec/**') ./node_modules/jasmine/bin/jasmine.js", + "test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node $(if [ \"$CODE_COVERAGE\" = \"1\" ]; then echo './node_modules/babel-istanbul/lib/cli.js cover -x **/spec/**'; fi;) ./node_modules/jasmine/bin/jasmine.js", "posttest": "mongodb-runner stop", "start": "./bin/parse-server", "prepublish": "npm run build"