build: bump Jest - #3413
Draft
aresnik11 wants to merge 7 commits into
Draft
Conversation
jest/jest-environment-jsdom 29.6.4 -> 30.x, babel-jest 29.6.4 -> 30.4.1, ts-jest -> ^29.4.12 (supports jest 30; ts-jest 30 unpublished). Pulls in jsdom 26. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Drop jest-environment-jsdom-global (unused; peer capped at jest 29), @testing-library/react-hooks (unused; renderHook comes from RTL), and mutationobserver-shim (jsdom 26 has native MutationObserver). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@testing-library/jest-dom ^5.16 -> ^7 and @testing-library/dom ^8 -> ^10 to align with jest 30 / RTL 15 / jsdom 26 (jest-dom v7 requires node 22). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The jest global types (describe/it) were only present transitively before; removing the unused deps dropped @types/jest, breaking tsconfig types:[jest]. Pin it explicitly at ^30 to match jest 30. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Jest 30 removed the alias matchers. toBeCalled -> toHaveBeenCalled and lastCalledWith -> toHaveBeenLastCalledWith across Disclosure, GridForm, and useDebouncedField tests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The single-view config disabled the next CTA (last view), so jest-dom v7's accurate toHaveStyle read the disabled background. Add a second view so the next button is enabled and its primary variant is actually asserted. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Jest 30 changed the snapshot header URL (goo.gl -> jestjs.io); no content drift. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
View your CI Pipeline Execution ↗ for commit c0e725e ☁️ Nx Cloud last updated this comment at |
Collaborator
|
📬 Published Alpha Packages:
|
Contributor
|
🚀 Styleguide deploy preview ready! Preview URL: https://6a846b3c61f5c9911e9bcd16--gamut-preview.netlify.app |
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.
Overview
Bumps Jest from
29.6.4→30.xacross the gamut monorepo, refreshes the testing-library family to match, and removes some dead jest-related deps. All tests and typechecks pass.Landed as focused commits:
jest/jest-environment-jsdom→ 30.x,babel-jest→ 30.4.1,ts-jest→^29.4.12(supports jest 30; ts-jest 30 isn't published yet). Pulls in jsdom 26.jest-environment-jsdom-global(peer capped at jest 29, unused),@testing-library/react-hooks(unused —renderHookcomes from RTL),mutationobserver-shim(jsdom 26 has nativeMutationObserver)@testing-library/jest-dom^5→^7,@testing-library/dom^8→^10@types/jest^30— jest global types were only present transitively beforetoBeCalled→toHaveBeenCalled,lastCalledWith→toHaveBeenLastCalledWithgoo.gl→jestjs.ioheader URL; no content driftBreaking changes addressed
expectmatcher aliases — jest 30 deleted them; migratedtoBeCalled/lastCalledWith.getComputedStylecanary tests and timer/rAF-heavy suites; no regressions.Prerequisites (already satisfied — no work needed)
^22.13.1— jest 30 dropped 14/16/19/21.5.9.3— above jest 30's new 5.4 minimum.@nx/jest@22.6.0already resolves jest 30 internals.PR Checklist
Testing instructions
Expected: all 9 projects green (1587 tests pass, 0 fail), typecheck clean, and a clean working tree afterward (no snapshot churn).
PR Links and Envs