Skip to content

Remove support for passing badly typed elements to shallow renderer#11442

Merged
gaearon merged 1 commit intofacebook:masterfrom
gaearon:fix-shallow-clone
Nov 3, 2017
Merged

Remove support for passing badly typed elements to shallow renderer#11442
gaearon merged 1 commit intofacebook:masterfrom
gaearon:fix-shallow-clone

Conversation

@gaearon
Copy link
Copy Markdown
Collaborator

@gaearon gaearon commented Nov 3, 2017

Fixes #11441.
I believe this was added unintentionally and we didn’t actually intend to support this case.

I added early validation to catch these cases since they can be subtly broken if we keep allowing them.

@gaearon gaearon merged commit fd47129 into facebook:master Nov 3, 2017
@gaearon gaearon deleted the fix-shallow-clone branch November 3, 2017 16:17
NMinhNguyen referenced this pull request in enzymejs/react-shallow-renderer Jan 29, 2020
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