Skip to content

Commit e7e9a53

Browse files
allow environment variables to be set on Windows
1 parent 244febf commit e7e9a53

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@
3232
"babel-preset-es2015": "^6.5.0",
3333
"babel-register": "^6.5.1",
3434
"codecov": "^1.0.1",
35+
"cross-env": "^1.0.7",
3536
"deep-diff": "^0.3.3",
3637
"jasmine": "^2.3.2",
3738
"mongodb-runner": "^3.1.15"
3839
},
3940
"scripts": {
4041
"build": "./node_modules/.bin/babel src/ -d lib/",
41-
"pretest": "MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} mongodb-runner start",
42-
"test": "NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node ./node_modules/.bin/babel-istanbul cover -x **/spec/** ./node_modules/.bin/jasmine",
42+
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} ./node_modules/.bin/mongodb-runner start",
43+
"test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node ./node_modules/.bin/babel-istanbul cover -x **/spec/** ./node_modules/.bin/jasmine",
4344
"posttest": "mongodb-runner stop",
4445
"start": "./bin/parse-server",
4546
"prepublish": "npm run build"

0 commit comments

Comments
 (0)