Closed jarlef closed 1 year ago
Could you please include a reproduction? It's hard to help without it.
I have attached a link to a repro sandbox
@jarlef, your example is using React but you're importing configure
from @testing-library/dom
. In fact, you don't need @testing-library/dom
in your dependencies as @testing-library/react
installs it as a dependency.
I changed the import to @testing-library/react
and the configure works.
I'm closing this one, if it still reproduces, feel free to comment and re-open :)
@testing-library/dom
version: 8.19.0Relevant code or config:
What you did:
What happened:
The testing framework uses the default
data-testid
attribute instead of the overrideReproduction:
https://codesandbox.io/s/jovial-lucy-6j2l5h?file=/src/App.test.tsx
Problem description:
Suggested solution: