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

Replaced findDomNode with ref in order to use react-test-renderer for snapshot testing with storybook #140

Closed
wants to merge 4 commits into from

Conversation

acailly
Copy link

@acailly acailly commented Jun 7, 2017

I tried to use storyshots which uses react-test-renderer for snapshot testing.
Unfortunately findDomNode is not supported by react-test-renderer, but there is an alternative that works well: use a React ref.

More info on this incompatibility here: facebook/react#7371

I've not tested exhaustively since I can't manage to install canvas dependency on windows so I can't make the test run. However the example demo works.

@acailly
Copy link
Author

acailly commented Jun 28, 2017

This PR doesn't point on the right branch, sorry for that, see #152 for the updated PR

@acailly acailly closed this Jun 28, 2017
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