Bump jest and @types/jest#405
Closed
dependabot[bot] wants to merge 1 commit into
Closed
Conversation
dependabot
Bot
force-pushed
the
dependabot/npm_and_yarn/multi-cbfe5253e3
branch
2 times, most recently
from
July 17, 2026 16:29
17132aa to
6a227d3
Compare
austin-denoble
added a commit
that referenced
this pull request
Jul 20, 2026
…413, #414) (#415) ## Summary Combines five Dependabot PRs whose CI only failed because `PINECONE_API_KEY` is not exposed to Dependabot-triggered workflow runs (lint/build/unit/smoke were all green on each). Reopening them on a maintainer-authored branch lets the secret-gated jobs (TS compile, external-app, example app, integration) run and pass. Supersedes and closes: #403, #406, #407, #413, #414. ### npm bumps | Package | From → To | Supersedes | |---------|-----------|------------| | @edge-runtime/jest-environment | ^2.3.10 → ^4.0.0 | #413 | | @edge-runtime/types | ^2.2.9 → ^4.0.0 | #407 | | dotenv | ^16.6.1 → ^17.4.2 | #406 | | tsx | ^4.21.0 → ^4.23.1 | #414 | | typedoc | ^0.27.9 → ^0.28.20 | #414 | (transitively: `@edge-runtime/vm` 3→5, `@edge-runtime/primitives` 4.1→6.0) ### GitHub Actions bumps (#403) - `actions/checkout` v4 → v7 - `actions/setup-node` v4 → v7 - `oven-sh/setup-bun` v1 → v2 ## Local verification - ✅ `npm run build` (tsc) compiles - ✅ `npm run lint` clean - ✅ `npm run test:unit` — 574 passing - ✅ `npm run docs:build` (typedoc 0.28) — 0 errors - ✅ prettier — unchanged ## Not included The remaining Dependabot PRs have genuine breakages and are intentionally left out: `typescript@7` (#408, blocked by ts-jest peer), `eslint@10` (#409), `@types/node@26` (#410, URLPattern conflict), `@typescript-eslint@8` parser/plugin (#411/#412, must be paired), and `jest`/`@types/jest` (#405, needs `toThrowError`→`toThrow`). 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Changes are limited to devDependencies and GitHub Actions versions; the published package surface is unchanged. > > **Overview** > Bundles several safe Dependabot updates into one maintainer branch so secret-gated CI can run. > > **CI:** All workflow checkouts move from `actions/checkout@v4` to **v7**; the TypeScript compile matrix uses `actions/setup-node@v7`; Bun integration legs use `oven-sh/setup-bun@v2` instead of v1. > > **Dev dependencies:** `@edge-runtime/jest-environment` and `@edge-runtime/types` jump to **^4.0.0** (with newer `@edge-runtime/vm` / primitives for edge Jest runs). `dotenv` **^17.4.2**, `tsx` **^4.23.1**, and `typedoc` **^0.28.20** are bumped in `package.json` with matching `package-lock.json` changes—docs and integration tooling only, not the published SDK runtime. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 54e7eb3. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
dependabot
Bot
force-pushed
the
dependabot/npm_and_yarn/multi-cbfe5253e3
branch
from
July 20, 2026 04:16
6a227d3 to
a0e08bf
Compare
Bumps [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) and [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest). These dependencies needed to be updated together. 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) --- updated-dependencies: - dependency-name: "@types/jest" dependency-version: 30.0.0 dependency-type: direct:development update-type: version-update:semver-major - dependency-name: jest dependency-version: 30.4.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot
Bot
force-pushed
the
dependabot/npm_and_yarn/multi-cbfe5253e3
branch
from
July 20, 2026 16:25
a0e08bf to
30b1e39
Compare
Contributor
|
Superseded by #417, which bumps jest and @types/jest to v30 and includes the required |
Author
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. You can also ignore all major, minor, or patch releases for a dependency by adding an If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
austin-denoble
added a commit
that referenced
this pull request
Jul 20, 2026
Bumps jest 29.7 -> 30.4 and @types/jest -> ^30.0.0. ts-jest@29.4.11 is peer-compatible with jest 30, so no ts-jest change is needed. jest 30 removed the `toThrowError` matcher alias, so all 97 dot-prefixed `.toThrowError(` matcher calls across 16 test files were converted to `.toThrow(` (local `toThrow` helper functions are unaffected). Also removes the now-obsolete `jest`/`ts-jest` minimatch overrides (added in #386 to patch minimatch 3.x). jest 30 no longer pulls minimatch 3.x — it uses glob -> minimatch 10.x — so forcing 3.1.5 into that subtree produced a tree that npm 10 (CI) rejects. The eslint/eslint-plugin-import overrides remain, and `npm audit` reports 0 vulnerabilities. Lockfile regenerated with npm 10 to match CI. Dev-dependency only (no runtime deps, no peer deps); ships in a minor/patch. Supersedes #405. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
austin-denoble
added a commit
that referenced
this pull request
Jul 20, 2026
Bumps jest 29.7 -> 30.4 and @types/jest -> ^30.0.0. ts-jest@29.4.11 is peer-compatible with jest 30, so no ts-jest change is needed. jest 30 removed the `toThrowError` matcher alias, so all 97 dot-prefixed `.toThrowError(` matcher calls across 16 test files were converted to `.toThrow(` (local `toThrow` helper functions are unaffected). Removes the now-obsolete `jest`/`ts-jest` minimatch overrides (added in #386 to patch minimatch 3.x). jest 30 no longer pulls minimatch 3.x — it uses glob -> minimatch 10.x — so forcing 3.1.5 into that subtree produced a tree that npm 10 (CI) rejects. The eslint/eslint-plugin-import overrides remain, and `npm audit` reports 0 vulnerabilities. Lockfile regenerated with npm 10 to match CI. Adds an override forcing @edge-runtime/jest-environment's internal @jest/* and jest-mock to ^30. Every published edge-runtime version (incl. the beta tag) pins jest-mock@29.5.0, which lacks the ModuleMocker.clearMocksOnScope method that jest-runtime@30 calls during resetModules, breaking all edge integration suites at init. The edge environment is API-compatible with jest-mock 30. Remove this override once edge-runtime ships jest 30 support. Dev-dependency only (no runtime deps, no peer deps); ships in a minor/patch. Supersedes #405. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
austin-denoble
added a commit
that referenced
this pull request
Jul 20, 2026
## Summary Bumps `jest` `29.7` → `30.4` and `@types/jest` → `^30.0.0`. This is a **major** jest upgrade (larger than the Dependabot title implies). `ts-jest@29.4.11` is peer-compatible with jest 30, so no `ts-jest` change is needed. Supersedes and closes: #405. ## Required code change jest 30 removed the `toThrowError` matcher alias. All **97** dot-prefixed `.toThrowError(` matcher calls across **16 test files** were converted to `.toThrow(` (removed 97 / added 97, verified balanced). The dot-prefix targeting leaves the local `toThrow` helper functions untouched. One prettier reflow in `describeIndexStats.test.ts` from the shortened lines. ## Consumer impact: none Dev-dependency only. The package has no runtime `dependencies` and no `peerDependencies`, and only `/dist` is published, so this ships in a **minor/patch** with no consumer migration. ## Local verification - ✅ `npm run build` (tsc) — compiles - ✅ `npm run lint` — clean - ✅ `npm run test:unit` — **574 passing under jest 30** - ✅ prettier — clean 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Dev-dependency and test-only matcher renames; no production code or published package surface changes. > > **Overview** > Upgrades **jest** from 29.7 to **30.4** and **@types/jest** to **^30.0.0** (dev-only). **ts-jest** stays on v29; it remains peer-compatible with jest 30. > > Jest 30 drops the **`toThrowError`** matcher alias, so unit tests were updated to use **`.toThrow(`** instead (bulk rename across control/data vector tests and integration retry tests). Local helper functions named `toThrow` were left unchanged. > > No runtime or published API impact—only the test toolchain and assertions change. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 6c41517. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.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 jest and @types/jest. These dependencies needed to be updated together.
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
Note
Medium Risk
Major Jest upgrade can change test/runtime behavior (mocks, ESM/CJS, snapshots) across the full test matrix even though production code is untouched.
Overview
Updates devDependencies only:
jestfrom 29.7.0 to 30.4.x and@types/jestfrom 29.x to ^30.0.0, with the correspondingpackage-lock.jsonrefresh. No changes to library source, Jest config files, or test scripts.This is a major Jest upgrade (runtime rewrite, CJS/ESM interop changes, new defaults). Risk is confined to unit, integration, and smoke runs (
test:unit,test:integration:*,test:smoke:mocked) via existingts-jestand@edge-runtime/jest-environmentsetups.Reviewed by Cursor Bugbot for commit 30b1e39. Bugbot is set up for automated code reviews on this repo. Configure here.