chore(deps): vitest 5, jsdom 30, jest-dom 7 (majors) - #84
Merged
Merged
Conversation
Test-runtime majors that share one upgrade path (Node >= 22): - vitest 4.1.10 -> 5.0.0: clearMocks now defaults to true (setup.ts already called vi.clearAllMocks after each test), vi.mock must be top-level (all are), unawaited resolves/rejects now fail (the one use is awaited), sequential removed (unused), reports default to .vitest/ (added to .gitignore) - jsdom 29.1.1 -> 30.0.1: only breaking change is the Node floor - @testing-library/jest-dom 6.9.1 -> 7.0.1: @testing-library/dom becomes a required peer, satisfied by @testing-library/react 16.3.3; the "/matchers" and root entrypoints used in tests/setup.ts still exist Unit (16) and node (21) suites are green on the new stack. No test changes. Claude-Session: https://claude.ai/code/session_01KLWmWU1KLE2diUH14ryqv1
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Sep 14, 2026
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.
One sentence
Major bumps of the test runtime (vitest 5, jsdom 30, jest-dom 7), grouped because they share one upgrade path and are verified together; left open for review because they are majors.
Bumps
Breaking changes and how they land here
docs/guide/migration): Node >= 22.12 and Vite >= 6.4 (we have vite 8.1.4);clearMocksdefaults totrue(tests/setup.tsalready ranvi.clearAllMocks()after each test, so behaviour is unchanged);vi.mock/vi.hoistedinside functions now throw (all calls here are top-level); unawaitedresolves/rejectsfail the test (the single use intests/node/lib/changelog.test.tsis awaited);test.sequentialremoved (unused);globalThisassignments propagate to the jsdom window; reports/attachments default to.vitest/(added to.gitignore); deprecated entrypoints likevitest/reportersremoved (unused).@vitest/coverage-v8is not a dependency here, sotest:coveragewas already not runnable and is unchanged.vitest.config.browser.tsstill uses the pre-vitest-4 stringprovider: "playwright"; that config was already non-functional without@vitest/browser-playwrightand is out of scope.^22.22.2 || ^24.15.0 || >=26; addsCSS.escape()/CSS.supports(), andgetComputedStyle()now returns lengths in px (no snapshot here depends on that). 30.0.1 fixes acalc()regression from 30.0.0.@testing-library/domis now a required peer (>=10 <11), satisfied by@testing-library/react16.3.3; Node >= 22; new matchers added, none removed.tests/setup.tsstill doesimport "@testing-library/jest-dom"plusexpect.extend(matchers)from/matchers, both still exported.No test files changed. Supersedes dependabot #49.
Verification
pnpm typecheckcleanpnpm test: 4 files, 16 tests greenpnpm exec vitest run --config vitest.config.node.ts: 3 files, 21 tests greenpnpm buildpassesnext startsmoke:/200,/changelog200,/changelog/nope-xyz404,/faq200,/nope-404404Installed with
--ignore-scripts(isolated-vm postinstall fails under Node 26 locally; matches how Vercel builds).https://claude.ai/code/session_01KLWmWU1KLE2diUH14ryqv1