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

Replace findDOMNode with ref. #50

Closed
wants to merge 1 commit into from

Conversation

joaovieira
Copy link

Reason

Cannot use Jest Snapshot testing with react-tether because of it using React.findDOMNode API. react-test-renderer does not support findDOMNode but does support refs. See facebook/react#7371.

screen shot 2017-08-14 at 13 04 26

What's included

Just replace findDOMNode with an explicit ref to the targetNode.

All good to use with Jest snapshots now! 🎉

@joaovieira joaovieira closed this Aug 14, 2017
@joaovieira
Copy link
Author

joaovieira commented Aug 14, 2017

Does not entirely fix it. Already changed to use enzyme anyway :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant