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

Run Jest tests with "development" environment #11612

Merged
merged 1 commit into from
Nov 21, 2017

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Nov 21, 2017

We used to require setting it to 'test' because rewrite-modules step treated it specially. This prevented us from running tests with other NODE_ENV values.

Since we dropped Haste and no longer use rewrite-modules, we can now run tests with any environment value. I'm changing this to 'development' now but will later introduce a 'production' mode separately.

@@ -1,8 +1,6 @@
'use strict';

// React's test can only work in NODE_ENV=test because of how things
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

"because of how things are set up" — my favorite kind of description!

@gaearon gaearon merged commit 7e71273 into facebook:master Nov 21, 2017
raphamorim pushed a commit to raphamorim/react that referenced this pull request Nov 27, 2017
Ethan-Arrowood pushed a commit to Ethan-Arrowood/react that referenced this pull request Dec 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants