-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Added]: crossenv for jest script #2732
[Added]: crossenv for jest script #2732
Conversation
Present script will throw a system error in windows displaying ``` 'NODE_ENV' is not recognized as an internal or external command, operable program or batch file. ``` fix To fix this we can have seperate jest script based on platform The new script `"jest:win32": "SET NODE_ENV=test && jest \"$@\"", `
can you use crossenv instead https://github.com/kentcdodds/cross-env? |
Yeah..it can be done, then have to add it as a dependency here. Is it fine then ? |
let's go with crossenv |
okay |
Added cross-env package as dependency to run the jest script in cross other OS without crash .
cc @sibelius |
@jstejada PTAL // |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kassens is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Thanks! |
@kassens Should I rebase ? |
No need, it merged cleanly :) |
Great 👍 |
The present script
Present Error
Will throw a system error in windows displaying
fix
To fix this we can have seperate jest script based on platform
The new script
The above script will work fine with windows and OSX. And the
jest
forlinux