We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to set isVisible to true using Jest?
I want to be able to test whether my function is being called when the element is visible.
Setting the window.innerWidth and window.innerWidth doesn't work, and isVisible is still false.
window.innerWidth
isVisible
If it's not possible to set isVisible to true, how can I achieve my testing objectives?
The text was updated successfully, but these errors were encountered:
Having the same issue isVisible gets set to false and my test breaks due to logic being performed when !isVisible
Sorry, something went wrong.
No branches or pull requests
Is it possible to set isVisible to true using Jest?
I want to be able to test whether my function is being called when the element is visible.
Setting the
window.innerWidth
andwindow.innerWidth
doesn't work, andisVisible
is still false.If it's not possible to set
isVisible
to true, how can I achieve my testing objectives?The text was updated successfully, but these errors were encountered: