-
-
Notifications
You must be signed in to change notification settings - Fork 778
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
TypeError: Cannot read property 'ownerDocument' of null - when using react-test-renderer #338
Comments
@isilweo Look on this issues: |
@yesmeck Any suggestion about how to test refs with react-test-rerender? |
Issues @polkpolio1 post above explain this issue well, anyway I recommend enzyme + enzyme-to-json for React testing, it's recommended on reactjs.org too. |
Close since we can not help with this problem. You may see example of rc-slider itself's test setting: |
Hey,
#326 broke snapshot testing for me. I can mock rc-slider but this would be against reason snapshot tests are for.
this is line, responsible for error. Maybe it would be enought to add null check here.
https://github.com/react-component/slider/pull/326/files#diff-82bbf536b7291bf2c65d9a6effc28a19R90
error below
The text was updated successfully, but these errors were encountered: