-
Notifications
You must be signed in to change notification settings - Fork 132
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
Using -1 as target element in useCountUp breaks in test #185
Comments
@RobinBressan I can take a look, but it will be helpful if you could provide your code, that breaking tests |
Maybe @reakaleek has an idea how to solve this? As far as I can remember can this be any truthy value that is not an actual element. |
Yeah, the or actually just pass |
Hi,
I'm trying to have storyshot running and my components using
react-countup
are breaking tests becausecountup.js
try to set innerHTML on-1
.Maybe you should pass an empty litteral object in here:
react-countup/src/useCountUp.js
Line 7 in 718eb2c
But not sure why this is triggering an error only in tests, it seems triggered inside
react-test-renderer
.Do you have some feedback on this?
Thank you very much for your time and work!
The text was updated successfully, but these errors were encountered: