Closed julienw closed 3 months ago
The same thing happens with the latest versions: @testing-library/react: 14.0.0 @testing-library/dom: 9.3.1 jest: 29.7.0 jest-environment-jsdom: 29.7.0 (using jsdom 20.0.3 under the hood)
I updated the repository.
I believe the problem happens in https://github.com/testing-library/dom-testing-library/blob/336152be6670d40509f35043e661cde14e4b30ba/src/wait-for.js#L27-L31
The message property of a DOMException can't be 'set'. Maybe we should use defineProperty instead?
:tada: This issue has been resolved in version 9.3.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 10.0.0-alpha.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 10.0.0-alpha.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
@testing-library/dom
version: I think it is 8.20.1 (used by @testing-library/react 13.4.0)Relevant code or config:
The selector is incorrect and should be:
What you did:
What happened:
Reproduction:
I couldn't reproduce in codesandbox but here is an example:
https://github.com/julienw/bug-testing-library
Problem description:
We don't have a good error, instead we have a timeout. The actual error is in a console error message above, which isn't ideal.
I haven't tried with newer versions of jsdom and jest yet.
Suggested solution:
I'm not sure to be honest...