-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
children() throws an error when called on a component having a text node with a span #603
Comments
Thanks for the report @adriantoine, I was able to reproduce. You are exactly right, we make an unguarded call to We should be filtering out these nodes. I'll get a fix in for this soon 👍 |
Cool, thanks! 😊 |
Hey, any update on this? I'm finding a similar issue trying to use |
This should fix a test issue in which it wasn't possible to get children when one of them was a text node (containing a <span>), described at enzymejs/enzyme#603
This should fix a test issue in which it wasn't possible to get children when one of them was a text node (containing a span), described at enzymejs/enzyme#603
Hi,
This is very easy to replicate:
throws this error:
Maybe because of the text node not having a public instance.
I'm using Jest and Enzyme
v2.4.1
.The text was updated successfully, but these errors were encountered: