chore(deps): upgrade vite 5→8 + vitest 2→4 + @vitejs/plugin-react (supersedes #269)#278
Merged
Conversation
…persedes #269) Coordinated bump of the web Vite toolchain (dependabot #269 bumped only vite and couldn't merge alone — its peers conflicted). All peer-clean against Node 22. - vite ^5.4.8 → ^8.1.0 (engines ^20.19||>=22.12 satisfied; Rolldown bundler) - vitest ^2.1.1 → ^4.1.9 (peer vite ^6||^7||^8) - @vitejs/plugin-react ^4.3.1 → ^6.0.3 (peer vite ^8; the @rolldown/plugin-babel and babel-plugin-react-compiler peers are optional — not added) - regenerated package-lock.json; npm ci resolves with zero ERESOLVE Breaking-change fixes: - vite.config.ts: vitest-4 pool rework removed test.poolOptions → singleFork:true becomes top-level maxWorkers:1 (isolate stays default-true, preserving the single-fork serial-files signal the suite relies on). - src/lib/auth.test.tsx: vitest-4 constructor-mock change — a vi.fn() invoked with `new` must use the function/class keyword; the oidc-client-ts UserManager mock's arrow-returning-object form now throws "is not a constructor", rewritten to a `function` constructor assigning the hoisted spies. Full gate green from a clean npm ci: lint + typecheck + build + 1261/1261 tests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…rs=1) vitest 4 removed --poolOptions.forks.singleFork; the equivalent single-fork serial-files signal is --pool=forks --maxWorkers=1. Fixes the two active tooling references (web-test-trap-reviewer agent + finish-slice command) so they don't error for the next run. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Closes the deferred vite major (dependabot #269 bumped only
vite, which can't merge alone —vitest@2peers vite ≤6). This moves the whole stack in lockstep, peer-clean (no--legacy-peer-deps).Versions
vitevitest@vitejs/plugin-reactjsdomstayed 29.1.1; nothing else needed touching. The plugin-react@rolldown/plugin-babel+babel-plugin-react-compilerpeers are optional — not pulled in (no React Compiler). Node 22.23 satisfies vite 8's^20.19 || >=22.12engines.Breaking changes fixed (surface = deps + config + 1 test-API adaptation)
vite.config.ts— vitest 4 removedtest.poolOptions;forks.singleFork:true→ top-levelmaxWorkers:1(keepspool:"forks"+ defaultisolate:true, preserving the single-fork serial-files signal the MSW/cleanup teardown relies on).src/lib/auth.test.tsx— vitest 4's constructor-mock change: avi.fn()invoked withnewnow needs afunction/classbody; theoidc-client-tsUserManagermock's arrow-returning-object threw "is not a constructor" → rewritten to a function constructor (same spies; 5 tests green).--poolOptions.forks.singleFork=trueupdated to--maxWorkers=1(the web-test-trap-reviewer agent + the finish-slice command).Verification
rm -rf node_modules && npm ciresolves with zero ERESOLVE, 0 vulnerabilities. Full gate green from a clean state: lint ✓ · typecheck ✓ · build ✓ (dist emitted) · test = 1261 passed (unchanged). No tests skipped/weakened, no product-code changes.🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com