-
Notifications
You must be signed in to change notification settings - Fork 54
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 'length' of null #14
Comments
@VeeteshJain running into the same issue did you find a fix? |
adding jest.mock('react-dotdotdot', () => 'div'); resolved the issue for me. |
I'm closing it for now. Please reopen if problem occurs again. |
I'm having this same issue and @yantakus fix did not work for me. my implementation is
stack trace
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
getting this error as react Dotdotdot not able to access container ref in case of snapshot testing
this.dotdotdot(ReactDOM.findDOMNode(this.refs.container));
.some of my finding:-
1> https://facebook.github.io/react/blog/2016/11/16/react-v15.4.0.html#mocking-refs-for-snapshot-testing
2> facebook/react#7371
The text was updated successfully, but these errors were encountered: