-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Unable to test getBoundingClientRect #2514
Comments
I believe this is a jsdom limitation. #1233 may be related. The only time |
Thanks for the help!
Any suggestion on what could be causing the issue or what I could do to work around it? |
Current behavior
I have a scroller component which relies on refs. When trying to test it I get an error saying "Cannot read property 'getBoundingClientRect' of null]". Is there anyway to mock these values so that I can test if my functions work correctly?
Expected behavior
That the ref values are mockable so that getBoundingClientRect() doesn't throw an error.
Your environment
API
Version
Adapter
The text was updated successfully, but these errors were encountered: