Closed
Description
Edit
Please see my last comment – this is a case of beginner's confusion but maybe a bit of a confusing error message as well.
@testing-library/dom
version: 7.30.0- Testing Framework and version: @testing-library/react ^11.2.5
- DOM Environment: jest / jestdom
Relevant code or config
What you did: Working on some tests; I am still very new to testing-library and unit testing with React overall.
What happened:
I got this error message, so am opening an issue as requested:
Unable to find the "window" object for the given node. Please file an issue with the code that's causing you to see this error: https://github.com/testing-library/dom-testing-library/issues/new
Reproduction repository:
https://github.com/testing-library/dom-testing-library-template
Problem description: I got an error asking to open an issue.
Suggested solution: Who knows, but I hope this can help you trace down a bug if there is one. Let me know if you'd like any additional information.