Skip to content

Conversation

@ram-ui-dev
Copy link

Summary

Upgrades Jest from v26 to v30 to prepare for future dependency updates.

Changes

  • Upgrade jest from ^26.6.0 to ^30.0.0
  • Upgrade babel-jest from ^26.6.0 to ^30.0.0
  • Upgrade @types/jest from ^26.0.14 to ^30.0.0
  • Add jest-environment-jsdom ^30.0.0 (no longer bundled with Jest 27+)
  • Update Jest config: testURLtestEnvironment + testEnvironmentOptions (Jest 28+ requirement)
  • Update deprecated Jest matchers across all test files:
    • toBeCalledWithtoHaveBeenCalledWith
    • toBeCalledtoHaveBeenCalled
    • toBeCalledTimestoHaveBeenCalledTimes
    • toThrowErrortoThrow
  • Update 75 snapshots for Jest 30 formatting changes

Testing

  • ✅ All 607 tests passing (17 skipped)
  • ✅ All 197 snapshots passing
  • ✅ Lint and TypeScript checks passing

- Upgrade jest from ^26.6.0 to ^30.0.0
- Upgrade babel-jest from ^26.6.0 to ^30.0.0
- Upgrade @types/jest from ^26.0.14 to ^30.0.0
- Add jest-environment-jsdom ^30.0.0 (no longer bundled with Jest)
- Update Jest config: testURL -> testEnvironment + testEnvironmentOptions
- Update deprecated Jest matchers across all test files:
  - toBeCalledWith -> toHaveBeenCalledWith
  - toBeCalled -> toHaveBeenCalled
  - toBeCalledTimes -> toHaveBeenCalledTimes
  - toThrowError -> toThrow
- Update 72 snapshots for Jest 30 formatting changes

All tests passing (607 passed, 17 skipped)
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