Skip to content
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

Running Tests on Windows #491

Closed
krzyswiatkowski opened this issue Mar 20, 2020 · 1 comment
Closed

Running Tests on Windows #491

krzyswiatkowski opened this issue Mar 20, 2020 · 1 comment

Comments

@krzyswiatkowski
Copy link
Contributor

krzyswiatkowski commented Mar 20, 2020

What's wrong?

yarn test command is not working correctly on windows:

$ yarn test
yarn run v1.22.4
$ BABEL_ENV=test jest --config jest.config.json
'BABEL_ENV' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.

Expected behaviour

yarn test command runs on windows correctly

Suggested solution

  1. Installing cross-env package
  2. Modifying test command to:
"test": "cross-env BABEL_ENV=test jest --config jest.config.json",

Proposed solution: #492

@joeldenning
Copy link
Member

Resolved in #492 - thanks

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

No branches or pull requests

2 participants