Skip to content

#5284 - Show a friendly error when using TestUtils.Simulate with shallow rendering#5358

Merged
sophiebits merged 1 commit intofacebook:masterfrom
conorhastings:invariant-testutils-simulate-shallow-render
Nov 3, 2015
Merged

#5284 - Show a friendly error when using TestUtils.Simulate with shallow rendering#5358
sophiebits merged 1 commit intofacebook:masterfrom
conorhastings:invariant-testutils-simulate-shallow-render

Conversation

@conorhastings
Copy link
Copy Markdown

closes #5284

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@conorhastings updated the pull request.

@conorhastings conorhastings changed the title Show a friendly error when using TestUtils.Simulate with shallow rendering #5284 - Show a friendly error when using TestUtils.Simulate with shallow rendering Nov 2, 2015
Comment thread src/test/ReactTestUtils.js Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: Can you write "ReactElement" without a space? That's consistent with our prop types message.

@sophiebits
Copy link
Copy Markdown
Collaborator

Looks great, just a couple nits – if you could fix those and squash your commits that would be perfect!

@conorhastings conorhastings force-pushed the invariant-testutils-simulate-shallow-render branch 2 times, most recently from 07f4538 to bbecb01 Compare November 3, 2015 01:11
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@conorhastings updated the pull request.

@conorhastings
Copy link
Copy Markdown
Author

@spicyj thanks for the feedback! updated.

@conorhastings conorhastings force-pushed the invariant-testutils-simulate-shallow-render branch from bbecb01 to fbb8d2f Compare November 3, 2015 01:14
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@conorhastings updated the pull request.

sophiebits added a commit that referenced this pull request Nov 3, 2015
…ate-shallow-render

#5284 - Show a friendly error when using TestUtils.Simulate with shallow rendering
@sophiebits sophiebits merged commit 5724fca into facebook:master Nov 3, 2015
@sophiebits
Copy link
Copy Markdown
Collaborator

Looks great! Thank you.

@conorhastings conorhastings deleted the invariant-testutils-simulate-shallow-render branch November 3, 2015 01:28
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.

Show a friendly error when using TestUtils.Simulate with shallow rendering

3 participants