File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
- " 4.3"
7
7
env :
8
8
global :
9
- - CODE_COVERAGE=1
9
+ - COVERAGE_OPTION='./node_modules/babel-istanbul/lib/cli.js cover -x **/spec/**'
10
10
matrix :
11
11
- MONGODB_VERSION=2.6.11
12
12
- MONGODB_VERSION=3.0.8
Original file line number Diff line number Diff line change 56
56
"dev" : " npm run build && bin/dev" ,
57
57
"build" : " ./node_modules/.bin/babel src/ -d lib/" ,
58
58
"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 $(if [ \" $CODE_COVERAGE \" = \" 1 \" ]; then echo './node_modules/babel-istanbul/lib/cli.js cover -x **/spec/**'; fi;) ./node_modules/jasmine/bin/jasmine.js" ,
59
+ "test" : " cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node $COVERAGE_OPTION ./node_modules/jasmine/bin/jasmine.js" ,
60
60
"posttest" : " mongodb-runner stop" ,
61
+ "coverage" : " cross-env COVERAGE_OPTION='./node_modules/babel-istanbul/lib/cli.js cover -x **/spec/**' npm test" ,
61
62
"start" : " ./bin/parse-server" ,
62
63
"prepublish" : " npm run build"
63
64
},
You can’t perform that action at this time.
0 commit comments