Skip to content

Conversation

@steven-supersolid
Copy link
Contributor

cross-env or similar is required for setting environment variables
js paths instead of cmd paths required on Windows

I'm not sure if we need ./node_modules/.bin/babel-node as babel-istanbul includes babel? Would like to remove if not required to simplify and slim the package down.

package.json Outdated
"pretest": "MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} mongodb-runner start",
"test": "NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node ./node_modules/.bin/babel-istanbul cover -x **/spec/** ./node_modules/.bin/jasmine",
"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 ./node_modules/babel-istanbul/lib/cli.js cover -x **/spec/** node_modules/jasmine/bin/jasmine.js",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realise I dropped a ./ on the path to jasmine. Not sure what the best practice is here but would change to be consistent

@facebook-github-bot
Copy link

@steven-supersolid updated the pull request.

@drew-gross
Copy link
Contributor

Cool! @steven-supersolid If you can also update our .travis.yml to build on windows that will help us make sure windows test keep working into the future.

drew-gross added a commit that referenced this pull request Feb 11, 2016
Add support for running tests on Windows
@drew-gross drew-gross merged commit dea7bb5 into parse-community:master Feb 11, 2016
@steven-supersolid
Copy link
Contributor Author

@drew-gross That's still something I have to learn, but preliminary look shows Windows might not be supported by Travis? travis-ci/travis-ci#216

@drew-gross
Copy link
Contributor

Ah. I saw that issue, didn't want to read the whole thing, and assumed since it was closed, and I knew OSX was now supported, that meant windows was also supported, My bad!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants