Skip to content

chore(deps): upgrade Jest from v29 to v30#2756

Merged
robert-hebel-sb merged 2 commits intomasterfrom
chore/upgrade-jest-30
Mar 27, 2026
Merged

chore(deps): upgrade Jest from v29 to v30#2756
robert-hebel-sb merged 2 commits intomasterfrom
chore/upgrade-jest-30

Conversation

@robert-hebel-sb
Copy link
Copy Markdown
Contributor

@robert-hebel-sb robert-hebel-sb commented Mar 26, 2026

Summary

  • Upgrade jest from ^29.6.4 to ^30.3.0, @types/jest from ^29.5.4 to ^30.0.0, and ts-jest from ^29.1.1 to ^29.4.6
  • Fix Jest 30 breaking changes: removed matcher aliases (toThrowError, toReturnWith, toBeCalledWith), removed jest.SpyInstance type
  • Fix pre-existing test bug using toContainEqual on a boolean value
  • Fix type error in apiKey.ts exposed by stricter type checking

Test plan

  • All 47 test suites pass (600 tests: 598 passed, 1 skipped, 1 todo)
  • Verify CI pipeline passes
  • Verify harness tests still work after yarn build.binary

🤖 Generated with Claude Code

Upgrade jest (^29.6.4 → ^30.3.0), @types/jest (^29.5.4 → ^30.0.0),
and ts-jest (^29.1.1 → ^29.4.6) to the latest versions.

Fix Jest 30 breaking changes:
- Replace removed matcher aliases: toThrowError → toThrow,
  toReturnWith → toHaveReturnedWith, toBeCalledWith → toHaveBeenCalledWith
- Replace removed jest.SpyInstance with jest.SpiedFunction<>
- Fix incorrect toContainEqual usage on boolean (pre-existing bug)
- Fix type error in apiKey.ts exposed by stricter types

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@robert-hebel-sb robert-hebel-sb requested a review from a team as a code owner March 26, 2026 15:24
@robert-hebel-sb robert-hebel-sb enabled auto-merge (squash) March 27, 2026 08:03
@robert-hebel-sb robert-hebel-sb merged commit fe98155 into master Mar 27, 2026
8 checks passed
@robert-hebel-sb robert-hebel-sb deleted the chore/upgrade-jest-30 branch March 27, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants