chore(deps-dev): migrate to Jest 30#94
Merged
Merged
Conversation
This was referenced Jul 23, 2026
pmigueld
force-pushed
the
chore/jest-30-migration
branch
from
July 24, 2026 07:57
fcbf5c8 to
4ffd275
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates all 5 Jest packages (datacollect, backend, adapter-mock/openfn/openspp) to Jest 30 (supersedes dependabot #73 and #89). A migration, not a plain bump.
Changes
enableMocks()was never called), and the two fetch-touching datacollect tests already use jest-nativeglobal.fetch = jest.fn().Fallout from jest-30/jsdom-30 (assertions preserved)
windowa non-configurable getter → the Auth0/Keycloak adapter tests (which fakeglobal.windowto test frontend/backend detection, no real DOM) moved to@jest-environment node+configurable: true. Same assertions.toThrownow enforces the thrown error's class.EntityDataManager.test.tsexpected anAppErrorthat the code never actually throws —EventApplierServicethrows a plainErrorandEntityDataManager.submitFormpasses it through unwrapped (verified: noSUBMIT_FORM_ERRORexists in the codebase). Corrected the expectation tonew Error(<same message>), preserving the message check jest 29 performed.Verification
datacollect 857 (801 pass/56 skip), backend 421 (vs Postgres), adapter-openspp 140, adapter-openfn 27, adapter-mock 53 — all match baseline.
🤖 Generated with Claude Code