Skip to content

"Please file an issue with the code that's causing you to see this error" #911

Closed
@jdevries3133

Description

@jdevries3133

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

https://github.com/jdevries3133/song_maker_gallery/blob/12fcc5be423a8cdac1a439e9e35d8e6ab1fe9bc9/django_smg/frontend/src/components/teacher/teacher.test.js#L44

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions