-
Notifications
You must be signed in to change notification settings - Fork 403
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
Version 6.6.0 has incorrect imports for lodash/isEqualWith. #641
Comments
Hmmm, I wonder why wasn't this caught in the tests and CI checks. Anyway. Will fix it. |
Wait, there's something weird going on here. We've had the same import for some time, in src/to-have-value.js. Line 1 in 9b14804
Looking at the difference with the new one, the new one lacks the extension. jest-dom/src/to-have-selection.js Line 1 in 9b14804
Ugh, I hate it with the extension is needed in imports. I wonder if that's why it worked in CI and not for you. |
@testing-library/jest-dom has an issue with an import in version 6.6.0. testing-library/jest-dom#641 There is already a pull request to fix this, but for now we can unblock by excluding this broken version.
Was coming here for this exact same issue :) And I don't know if you're aware but this happened before so this might require an eslint rule or something. Thanks for your work on this library! Cheers, |
Same issue here, it started happening in the pipeline then I found it here. |
+1 |
The fix is now released in v6.6.1. |
@testing-library/jest-dom
version: 6.6.0node
version: 20.17.0jest
(orvitest
) version: vitest 2.1.2npm
(oryarn
) version: pnpm 9.12Relevant code or config:
The
node_modules/@testing-library/jest-dom/dist/vitest.mjs
file currently reads:All other
dist
files have the same problem.Notice the two different imports of
lodash/isEqualWith
. The second one is incorrect and was added in #637 : https://github.com/testing-library/jest-dom/pull/637/files#diff-a136cc1088d17955bf3e51c2cb464c75890d15a5a008c05a9d17c68609b0a2f5R1.See also: https://github.com/search?q=repo%3Atesting-library%2Fjest-dom%20lodash%2FisEqualWith&type=code
What you did:
Try to upgrade to 6.6.0.
What happened:
Reproduction:
Problem description:
Incorrect import.
Suggested solution:
Change the import of lodash/isEqualWith in src/to-have-selection.js
The text was updated successfully, but these errors were encountered: