-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Ref doesn't properly render with Enzyme. #3694
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
https://codesandbox.io/s/dank-sunset-qz4cp What version of Enzyme you're using? Can you please provide a repro? We testing all our components with Enzyme and will be really strange to have such issue. |
Apologies! I had confirmed several times and this was not working and now it's working great! I may have unintentionally upgraded some libs or something in the meantime. At any rate I've switched to using the |
Bug Report
It seems that the
Ref
HOC doesn't play well with Enzyme. Usingshallow
will result in a warning andrender
ormount
will throw an error.Steps
Expected Result
Element should properly be wrapped/rendered/mounted.
Actual Result
Version
0.87.3
The text was updated successfully, but these errors were encountered: