Skip to content

Vitest 3.x peer-caps at Vite 6; unit tests don't exercise Rolldown after Vite 8 bump #114

Open

Description

@utof

Context

apps/desktop/ was bumped to [email protected] + @vitejs/plugin-react@6 in a recent commit (frontend modernization bundle, lib-audit L2 PR-2). Production builds now run under Rolldown (Vite 8's default bundler).

However, apps/desktop/bun.lock after the bump shows:

Vitest 3.x peer-caps at Vite 6 — see vitest-dev/vitest#4142 and vitest-dev/vitest discussion #7520. So production runs Vite 8 / Rolldown / Oxc, but the unit-test pipeline (`bun test`) still executes the frontend under Vite 6 + esbuild/Rollup.

Impact

Green `bun test` after the Vite 8 bump does not prove Rolldown compatibility. Any Vite-8/Rolldown-specific regression slips the test suite and surfaces only at `bun run build` or in production.

Desired outcome

Upgrade to Vitest 4 once it's GA. Vitest 4 is expected to align its peer range to Vite 8 and remove the split. Until then, the test suite runs under the older pipeline.

Current state (apps/desktop)

  • `vite`: `^8` (resolved 8.0.9)
  • `@vitejs/plugin-react`: `^6` (resolved 6.0.1)
  • `vitest`: `^3.2` (resolved 3.2.4)
  • `bun run build` under Vite 8: green.
  • `bun run test` under transitive Vite 6: green.
  • `bun run lint`: green.

Priority

Medium. The Vite 8 bump has landed and is validated manually against the production build path; the test-pipeline drift is a known risk, not an active failure.

Activity

  1. added
    status/needs-research
    area/frontend
    on Apr 20, 2026
  2. added this to the Library audit follow-ups milestone on May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/frontendstatus/needs-research

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions