We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
@happy-dom/jest-environment uses v27 of various jest packages.
When using in an app that has jest v29, tests fail with:
TypeError: Cannot read properties of undefined (reading 'bind') at Runtime._createJestObjectFor (node_modules/jest-runtime/build/index.js:2099:64)
The referenced line in jest-runtime accesses moduleMocker.replaceProperty, which doesn't exist on @happy-dom/jest-environment's jest-mock v27.
moduleMocker.replaceProperty
Updating jest-mock (and the other jest deps) in @happy-dom/jest-environment to v29 fixes this issue for me, and I'll submit a PR making that update.
To Reproduce Steps to reproduce the behavior:
Expected behavior @happy-dom/jest-environment works in Jest v29.
The text was updated successfully, but these errors were encountered:
Merge pull request #698 from ahuth/task/697-upgrade-jest-to-29
821b415
#697@patch: Upgrade jest dependencies to 29.4.0.
Thank you for your contribution @ahuth! 🙂
You can read more about the release here: https://github.com/capricorn86/happy-dom/releases/tag/v8.2.1
Sorry, something went wrong.
Thanks!
Successfully merging a pull request may close this issue.
Describe the bug
@happy-dom/jest-environment uses v27 of various jest packages.
When using in an app that has jest v29, tests fail with:
The referenced line in jest-runtime accesses
moduleMocker.replaceProperty
, which doesn't exist on @happy-dom/jest-environment's jest-mock v27.Updating jest-mock (and the other jest deps) in @happy-dom/jest-environment to v29 fixes this issue for me, and I'll submit a PR making that update.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
@happy-dom/jest-environment works in Jest v29.
The text was updated successfully, but these errors were encountered: