Skip to content

Deps: upgrade Vitest from 3 to 4 #280

Closed

Description

@wab

What to build

Upgrade Vitest and @vitest/coverage-v8 to 4.1.12 or later. This clears the critical tinypool finding (prototype pollution leading to code execution in the test runner) and the @vitest/mocker findings. Vitest 4 requires Vite 6 or later.

Vitest 4 changes several configuration options. Migrate the config rather than pinning compatibility flags.

Also exclude agent worktrees from test discovery: a local run currently picks up test files under .claude/, which adds about 260 failures.

Acceptance criteria

  • pnpm audit --dev reports no critical finding
  • The unit test count is unchanged from before the upgrade, all passing
  • pnpm test:coverage still produces a report
  • A local run ignores everything under .claude/
  • CI is green

Blocked by

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

    ready-for-agentFully specified, AFK-ready for an agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions