Skip to content

Update Jest and jest-environment-jsdom to version 30+#652

Closed
Copilot wants to merge 1 commit intodevelfrom
copilot/fix-4954d9d9-a162-4149-aeec-ff4fb5e24905
Closed

Update Jest and jest-environment-jsdom to version 30+#652
Copilot wants to merge 1 commit intodevelfrom
copilot/fix-4954d9d9-a162-4149-aeec-ff4fb5e24905

Conversation

Copy link
Contributor

Copilot AI commented Sep 23, 2025

This PR updates Jest and jest-environment-jsdom from version 29.7.0 to the latest stable version 30+ to keep our testing infrastructure current with the latest features and improvements.

Changes Made

  • jest: ^29.7.0^30.1.3
  • jest-environment-jsdom: ^29.7.0^30.1.2
  • @types/jest: ^29.5.12^29.5.14

Compatibility Notes

The upgrade maintains full backward compatibility:

  • All existing Jest configuration options in jest.config.ts continue to work without modification
  • The custom JSDOM environment (src/tests/jsdom-extended.ts) that extends jest-environment-jsdom to provide browser APIs (Request, Response, TextEncoder, etc.) for MSW compatibility works seamlessly with Jest 30
  • All test files continue to run without any changes required
  • TypeScript compilation passes without errors

Type Dependencies

@types/jest was updated to the latest 29.x version (29.5.14) rather than 30.x because @emotion/jest@11.13.0 currently only supports Jest types up to version 29. This doesn't affect functionality as Jest 30 runtime is fully compatible.

Verification

  • ✅ Jest version confirmed as 30.1.2
  • ✅ All existing tests pass successfully
  • ✅ Custom JSDOM environment works correctly
  • ✅ TypeScript compilation succeeds
  • ✅ No breaking changes detected

This update ensures our testing infrastructure stays current while maintaining full compatibility with our existing test suite and custom configurations.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@sonarqube-zextras
Copy link

Copilot AI changed the title [WIP] update jest-environment-jsdom and jest to version >30 Update Jest and jest-environment-jsdom to version 30+ Sep 23, 2025
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