-
Notifications
You must be signed in to change notification settings - Fork 472
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 find the "window" object for the given node." when node is a Promise #609
Comments
Yep, I had the same exact issue the other day where I tried to |
I'm good with this. Let's just check if it has a Though you may want to use typescript to avoid this 😉 |
This is an invitation to make a pull request 😁 |
I think we could add this to the eslint repo. |
That would definitely be cool |
🎉 This issue has been resolved in version 7.15.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
@testing-library/dom
version: 7.10.1jest
@26.0.1 via@testing-library/react
@10.2.1Relevant code or config
What you did:
This is a contrived example; what I actually did was pass the result of
findByRole
instead ofgetByRole
.What happened:
Problem description:
getWindowFromNode
doesn't account for thenode
not being aNode
.Suggested solution:
Give an explicit error message if it's an instance of a
Promise
.The text was updated successfully, but these errors were encountered: