Closed jarlef closed 1 year ago
You probably have multiple versions of @testing-library/dom
or @testing-library/react
installed. Make sure that only a single version of these libraries is installed. If you're unsure on how to do that, you can ask in the Testing Library Discord server.
After bumping
@testing-library/dom
from8.19.0
to8.19.1
all the spec tests fails on the following line when using custom test attribute (data-eid)setupTests.ts
If i revert to use the default
data-testid
then getByTestId is able to fetch the element from the DOM@testing-library/dom
version: 8.19.1Relevant code or config:
setupTests.ts
What you did:
Upgrade to latest version
What happened:
Reproduction:
Problem description:
Suggested solution: