@testing-library/react version: 10.0.3react version: 16.3.1node version: 12npm (or yarn) version: 1.19Upgraded @testing-library/dom to 7.2.1
@testing-library/dom configure doesn't set the testIdAttribute anymore
There are two entries created in yarn.lock for @testing-library/dom, one for 7.1.0 (used by @testing-library/react) and one for 7.2.1
Bump @testing-library/dom dependency to 7.2.1
You probably have a an explicit dependency on @testing-library/dom in your package.json (or another packages requires it).
Bumping it might very well cause issues in other dependency trees which is why this wouldn't be safe. It's also not maintainable since we'd need to publish new versions whenever on of our dependency gets a new release.
You need to de-duplicate this yourself. In your case removing each lockfile entry for @testing-library/dom and then running yarn should help.
Oh now I see that react re-exports dom, alright, I'll avoid using them together and just import everything from react.
Thank you!
Most helpful comment
Oh now I see that react re-exports dom, alright, I'll avoid using them together and just import everything from react.
Thank you!