Skip to content

chore: upgrade vitest to v4 (blocked on vitepress 2.0 stable) #118

Description

@rickcedwhat-ai

Context

vitest 4.x requires vite >=6, but vitepress@1.x bundles vite@5.x as a hard dependency. Under pnpm's strict peer resolution this causes a fatal crash at test startup:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './module-runner' is not defined
by "exports" in .../vite/package.json

Dependabot PR #116 surfaces this — it was closed because the upgrade can't land until the vite peer conflict is resolved.

What needs to happen

  1. vitepress 2.0 stable ships — it bundles vite@^7, which satisfies vitest 4's peer dep.

  2. Merge the vitepress 2.0 Dependabot PR — verify docs build and custom Vue components still compile.

  3. Remove the vitest ignore rules in .github/dependabot.yml — Dependabot will then re-open the vitest 4 bump and CI should pass.

Why Dependabot won't spam us in the meantime

.github/dependabot.yml has been updated to ignore vitest >= 4, @vitest/ui >= 4, and @vitest/coverage-v8 >= 4 until this is resolved.

References

Automated upstream check
type: npm
package: vitepress
condition: latest >= 2.0.0
blocked-pr: 116
upstream-check
type: npm
package: vitepress
condition: latest >= 2.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesDependency version updatesupstream-blocker:waitingBlocked on an upstream dependency; check runs weekly

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions