Bump the jest group with 4 updates - #2485
Closed
dependabot[bot] wants to merge 2 commits into
Closed
Conversation
Bumps the jest group with 4 updates: [babel-jest](https://github.com/jestjs/jest/tree/HEAD/packages/babel-jest), [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest), [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) and [ts-jest](https://github.com/kulshekhar/ts-jest). Updates `babel-jest` from 29.7.0 to 30.4.1 - [Release notes](https://github.com/jestjs/jest/releases) - [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/jestjs/jest/commits/v30.4.1/packages/babel-jest) Updates `jest` from 29.7.0 to 30.4.2 - [Release notes](https://github.com/jestjs/jest/releases) - [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/jestjs/jest/commits/v30.4.2/packages/jest) Updates `@types/jest` from 29.5.14 to 30.0.0 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) Updates `ts-jest` from 29.4.11 to 29.4.12 - [Release notes](https://github.com/kulshekhar/ts-jest/releases) - [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md) - [Commits](kulshekhar/ts-jest@v29.4.11...v29.4.12) --- updated-dependencies: - dependency-name: babel-jest dependency-version: 30.4.1 dependency-type: direct:development update-type: version-update:semver-major dependency-group: jest - dependency-name: jest dependency-version: 30.4.2 dependency-type: direct:development update-type: version-update:semver-major dependency-group: jest - dependency-name: "@types/jest" dependency-version: 30.0.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: jest - dependency-name: ts-jest dependency-version: 29.4.12 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: jest ... Signed-off-by: dependabot[bot] <support@github.com>
|
Contributor
Contributor
Author
|
This pull request was built based on a group rule. Closing it will not ignore any of these versions in future pull requests. To ignore these dependencies, configure ignore rules in dependabot.yml |
ravikiranvm
added a commit
that referenced
this pull request
Sep 10, 2026
Fixes OPS-4816. Supersedes #2485. Dependabot's jest group bump left `jest-environment-node` and `jest-environment-jsdom` on 29.7.0, so the environments handed the Jest 30 runtime a Jest 29 module mocker and every server-api suite crashed on startup with `TypeError: this._moduleMocker.clearMocksOnScope is not a function`. Jest 30 is a major release that also needs test code changes, so the upgrade is finished here by hand. ## Additional Notes Builds on the Dependabot commits (jest 30.4.2, babel-jest 30.4.1, @types/jest 30.0.0, ts-jest 29.4.12) and adds: - **Bump `jest-environment-node` and `jest-environment-jsdom` to 30.4.1** so the tree resolves a single `jest-mock`. This also moves the UI tests from jsdom 20 to jsdom 26. - **Rename `testPathPattern` to `testPathPatterns`** in the three server-api test targets. Jest 30 renamed the option and silently ignored the old name, so the unit target was running integration suites too. - **Replace matcher aliases removed in Jest 30** (`toThrowError`, `toBeCalled`, `toBeCalledWith`, `toBeCalledTimes`) with `toThrow` and the `toHaveBeenCalled*` forms across 23 test files. - **Make the OAuth consent hook test jsdom 26 compatible.** jsdom 26 marks `window.location` non-configurable, so the test can no longer replace it. The redirect now goes through a one-line `navigateToExternalUrl` helper that the test mocks at the module boundary. Hook behavior is unchanged. No product code changes beyond that helper extraction. ## Testing Checklist Check all that apply: - [x] I tested the feature thoroughly, including edge cases - [x] I verified all affected areas still work as expected - [x] Automated tests were added/updated if necessary - [x] Changes are backwards compatible with any existing data, otherwise a migration script is provided Ran locally on Jest 30: | Target | Result | | --- | --- | | `nx test-unit server-api` | 97 suites, 962 tests passed, only `test/unit` files ran | | `nx test-integration-ce server-api` | 18 suites, 148 tests passed | | `nx test-integration-cloud server-api` | 10 suites, 67 tests passed | | `nx test react-ui` | 49 suites, 546 tests passed | | `nx test ui-components` | 13 suites, 203 tests passed | | `nx run-many --target=test` (blocks, engine, openops, shared) | passed | | lint on react-ui, server-api, openops, blocks-anodot | clean | Two block suites fail on my machine for reasons unrelated to this change and pass in CI: `blocks-date-helper` assumes a three-letter short month and my locale is en-IN ("Sept"), and `blocks-azure` expects the `AZURE_EXTENSION_DIR` env var that GitHub runners set. ## Visual Changes (if applicable) None. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: Marcelo Gonçalves <marcelo@openops.com>
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.



Bumps the jest group with 4 updates: babel-jest, jest, @types/jest and ts-jest.
Updates
babel-jestfrom 29.7.0 to 30.4.1Release notes
Sourced from babel-jest's releases.
... (truncated)
Changelog
Sourced from babel-jest's changelog.
... (truncated)
Commits
b3b4a09v30.4.15cbb21ev30.4.06886816chore: enable node protocol in imports (#16077)d6d44e8feat(babel-jest): support collecting coverage from .mts, .cts (and other) fil...a3ab839chore(deps): update babel monorepo to v8.0.0-rc.4 (#15976)487f4e8chore: remove unused ignore comment (#16069)efb59c2v30.3.0486ae3dchore: update docusaurus (#15860)855864ev30.2.0d2a2491Support Babel 8 in plugins and presets (#15750)Updates
jestfrom 29.7.0 to 30.4.2Release notes
Sourced from jest's releases.
... (truncated)
Changelog
Sourced from jest's changelog.
... (truncated)
Commits
746f2a0v30.4.2b3b4a09v30.4.15cbb21ev30.4.0db7141afix: allowcollectCoverageandcoverageProviderin project config (#16132)efb59c2v30.3.096c53d3feat(jest-config): adddefineConfigandmergeConfigfunctions (#15844)855864ev30.2.0da9b532v30.1.3ebfa31cv30.1.2d347c0fv30.1.1Updates
@types/jestfrom 29.5.14 to 30.0.0Commits
Updates
ts-jestfrom 29.4.11 to 29.4.12Release notes
Sourced from ts-jest's releases.
Changelog
Sourced from ts-jest's changelog.
Commits
3f05625chore(release): 29.4.12df28b27docs: clarify TypeScript version prerequisitesc8a614adocs: mention TypeScript 7 setup in README06c79d4fix: address TypeScript 7 review feedbackf107460docs: explain TypeScript 7 compatibility setup3388227test(e2e): add TypeScript compatibility matrix891dc73fix(compiler): support TypeScript 7 compatibility aliaseseb135ebbuild(deps-dev): bump shell-quote from 1.8.4 to 1.10.0 in /examplesd5d80a3ci: pin google osv scan action at v2.3.56bf293fbuild(deps): bump shell-quote from 1.8.4 to 1.10.0 in /websiteDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions