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

Set this.props on elements in prod mode #4215

Merged
merged 1 commit into from
Jun 24, 2015

Conversation

sophiebits
Copy link
Collaborator

Oops. Introduced in #4172.

@jimfb
Copy link
Contributor

jimfb commented Jun 24, 2015

How did unit tests pass? We really should have unit tests run in both prod and dev mode.

@sophiebits
Copy link
Collaborator Author

Lots of them test dev-only warnings. Agree with the sentiment though.

sophiebits added a commit that referenced this pull request Jun 24, 2015
Set this.props on elements in prod mode
@sophiebits sophiebits merged commit 8f217c8 into facebook:master Jun 24, 2015
@jimfb
Copy link
Contributor

jimfb commented Jun 25, 2015

We were(/should) switch to a jasmine expectWarn instead of expecting a spy/mock. It's cleaner, and would allow us to disable the inspect when running the tests in prod mode (or better yet, inverse the expect, and expect things to NOT warn in prod). #2814

We reverted #2814 because it created some sort of push-blocking dependency cycle or something. Probably worth reviving though.

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