-
Notifications
You must be signed in to change notification settings - Fork 155
Dependency problem on @testing-library/dom between @testing-library/react and cypress-testing-library #255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Is this dependency update likely to be implemented soon in this library? This is causing webpack errors/build issues in any UI that we have Cypress tests implemented in, and any workaround is sub-optimal |
I have the same error with
|
I'm getting the same issue as alexyr, I'm seeing it with the following versions:
Digging a little into that role.js file on the error, it looks like it is this one https://github.com/testing-library/dom-testing-library/blob/a86c54ccda5242ad8dfc1c70d31980bdbf96af7f/src/queries/role.ts#L244 and it seems that the &&= operator is what cypress has an issue with. |
cypress-testing-library
version: 9.0.0node
version: v18.14.1npm
(oryarn
) version: 8.17.0Dependencies on @testing-library/dom
(base) ➜ repo git:(cypress-init) npm ls @testing-library/dom
[email protected] /x/x/workspace/repo
├─┬ @testing-library/[email protected]
│ └── @testing-library/[email protected]
├─┬ @testing-library/[email protected]
│ └── @testing-library/[email protected]
└─┬ @testing-library/[email protected]
└── @testing-library/[email protected] deduped
This results in a 9.0.0 in my package-lock.json
What you did:
Problem description:
Clashing dependencies.
Suggested solution:
Upgrade to the use of 9.0.0 of @testing-library/dom, although of course as tried, it isn't as simple as upping the number because it doesn't work with 9. My knowledge is limited in what is needed to be able to work with 9.0.0
The text was updated successfully, but these errors were encountered: