Skip to content

Commit dea7bb5

Browse files
committed
Merge pull request #335 from steven-supersolid/master
Add support for running tests on Windows
2 parents 2e5fd29 + 5855f81 commit dea7bb5

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,6 +32,7 @@
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
"gaze": "^0.5.2",
3738
"jasmine": "^2.3.2",
@@ -41,8 +42,8 @@
4142
"scripts": {
4243
"dev": "npm run build && bin/dev",
4344
"build": "./node_modules/.bin/babel src/ -d lib/",
44-
"pretest": "MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} mongodb-runner start",
45-
"test": "NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node ./node_modules/.bin/babel-istanbul cover -x **/spec/** ./node_modules/.bin/jasmine",
45+
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} ./node_modules/.bin/mongodb-runner start",
46+
"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",
4647
"posttest": "mongodb-runner stop",
4748
"start": "./bin/parse-server",
4849
"prepublish": "npm run build"

0 commit comments

Comments
 (0)