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

Fix fragment and portal handling in toTree() #12154

Merged
merged 1 commit into from Feb 5, 2018

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Feb 5, 2018

This fixes #12106.

Since Enzyme already supports fragments and has battle-tested this support, I used the same algorithm with a few differences:

This gets the new test I added passing.

@acdlite acdlite mentioned this pull request Feb 5, 2018
28 tasks
@gaearon gaearon changed the title Fix fragment handling in toTree() Fix fragment and portal handling in toTree() Feb 5, 2018
@gaearon gaearon merged commit 8b83ea0 into facebook:master Feb 5, 2018
This was referenced Mar 30, 2018
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.

react-test-renderer: toTree() does not yet know how to handle nodes with tag=10
3 participants