Skip to content

chore(deps): upgrade Vitest to 5.1.0-beta.1 - #3206

Draft
fengmk2 wants to merge 6 commits into
mainfrom
chore/upgrade-vitest-5.1-beta
Draft

fengmk2 wants to merge 6 commits into
mainfrom
chore/upgrade-vitest-5.1-beta

Conversation

@fengmk2

@fengmk2 fengmk2 commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Upgrade Vitest from 5.0.5 to 5.1.0-beta.1 to identify compatibility issues before the stable release. The dependency tools now accept exact prerelease versions for Vitest 5. Official Vitest packages use the same version.

The workspace keeps the WebDriverIO provider's @vitest/browser dependency at the selected Vitest version. vp test --help includes the new filtering options and browser port.

The npmx.dev fixture now uses commit 3472596. Its upstream Vue compiler alias replaces the optimizer workaround. Nuxt still needs browser.importMapMocks: false because it imports app modules before per-file mocks. A direct cac@7.0.0 dependency satisfies the fixture's strict peer checks.

The vite-plus-jest-dom-repro fixture uses upstream PR #1. Its npm@12.2.1 pin removes the need for an exception for coverage overrides.

The Preview provider still fails when a locator clicks with real timers. This known issue also affects Vitest 5.0.5.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://chore-upgrade-vitest-5-1-beta-viteplus-dev.voidzero-docs.workers.dev (commit 78ed9a2)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://31f2831a-viteplus-dev.voidzero-docs.workers.dev 78ed9a2 2026-10-23T08:53:51.187Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://0ac21059-viteplus-dev.voidzero-docs.workers.dev ba97781 2026-10-23T08:24:52.701Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://4ba282c1-viteplus-dev.voidzero-docs.workers.dev d7747b7 2026-10-23T07:49:09.121Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://bf63c62e-viteplus-dev.voidzero-docs.workers.dev e8b8026 2026-10-23T03:39:46.603Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://3fe4e188-viteplus-dev.voidzero-docs.workers.dev b31f381 2026-10-23T02:26:09.070Z Visit the dashboard ↗

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

✅ Staging deployment successful!

Preview: https://viteplus-staging.void.app/
Commit: 78ed9a2

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

CLI artifact sizes (78ed9a2)

Final release artifacts built by the canonical build-upstream and build-windows-cli actions.
The dist rows use the Linux build. The core total excludes .node files to match the release artifact.

Artifact Format Base PR Change
packages/cli/dist Directory total 2.25 MiB 2.25 MiB +346 B (+0.01%)
packages/core/dist Directory total 4.07 MiB 4.07 MiB +287 B (+0.01%)
Combined package dist Directory total 6.33 MiB 6.33 MiB +633 B (+0.01%)
vp (Linux x64) Binary 8.22 MiB 8.22 MiB 0 B (0.00%)
vp (Linux x64) gzip -9 3.76 MiB 3.76 MiB 0 B (0.00%)
NAPI (Linux x64) Binary 35.45 MiB 35.45 MiB 0 B (0.00%)
NAPI (Linux x64) gzip -9 14.12 MiB 14.12 MiB 0 B (0.00%)
vp (macOS ARM64) Binary 5.38 MiB 5.38 MiB 0 B (0.00%)
vp (macOS ARM64) gzip -9 3.20 MiB 3.20 MiB 0 B (0.00%)
NAPI (macOS ARM64) Binary 42.23 MiB 42.23 MiB 0 B (0.00%)
NAPI (macOS ARM64) gzip -9 18.25 MiB 18.25 MiB 0 B (0.00%)
vp (Windows x64) Binary 6.08 MiB 6.08 MiB 0 B (0.00%)
vp (Windows x64) gzip -9 2.81 MiB 2.81 MiB +1 B (+0.00%)
NAPI (Windows x64) Binary 31.50 MiB 31.50 MiB 0 B (0.00%)
NAPI (Windows x64) gzip -9 12.83 MiB 12.83 MiB -2 B (-0.00%)
Trampoline (Windows x64) Binary 13.50 KiB 13.50 KiB 0 B (0.00%)
Trampoline (Windows x64) gzip -9 7.09 KiB 7.09 KiB 0 B (0.00%)
Installer (Windows x64) Binary 4.67 MiB 4.67 MiB 0 B (0.00%)
Installer (Windows x64) gzip -9 2.24 MiB 2.24 MiB -1 B (-0.00%)

@fengmk2
fengmk2 force-pushed the chore/upgrade-vitest-5.1-beta branch from b31f381 to e8b8026 Compare October 23, 2026 03:39
@fengmk2 fengmk2 added test: e2e Auto run e2e tests test: install-e2e run vite install e2e test test: create-e2e Run `vp create` e2e tests preview-build Publish this PR's commits to the registry bridge as preview builds labels Oct 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Preview binary sizes (e8b8026)

Compared with the latest stable release, v1.4.0. Preview build.
Each row measures one binary. Negative changes mean a smaller preview binary.

Binary Latest release Preview Change
vp (macOS ARM64) 5.38 MiB 5.38 MiB 0 B (0.00%)
NAPI (macOS ARM64) 42.20 MiB 42.20 MiB 0 B (0.00%)
vp (macOS x64) 6.82 MiB 6.82 MiB 0 B (0.00%)
NAPI (macOS x64) 47.34 MiB 47.34 MiB 0 B (0.00%)
vp (Linux ARM64 GNU) 6.81 MiB 6.81 MiB 0 B (0.00%)
NAPI (Linux ARM64 GNU) 31.44 MiB 31.45 MiB +12.00 KiB (+0.04%)
vp (Linux ARM64 musl) 6.88 MiB 6.88 MiB 0 B (0.00%)
NAPI (Linux ARM64 musl) 30.67 MiB 30.67 MiB +128 B (+0.00%)
vp (Linux x64 GNU) 8.22 MiB 8.22 MiB 0 B (0.00%)
NAPI (Linux x64 GNU) 35.45 MiB 35.45 MiB 0 B (0.00%)
vp (Linux x64 musl) 8.29 MiB 8.29 MiB +64 B (+0.00%)
NAPI (Linux x64 musl) 34.43 MiB 34.43 MiB +128 B (+0.00%)
vp (Windows x64) 6.09 MiB 6.09 MiB +512 B (+0.01%)
NAPI (Windows x64) 31.16 MiB 31.16 MiB +512 B (+0.00%)
Trampoline (Windows x64) 13.00 KiB 13.00 KiB 0 B (0.00%)
Installer (Windows x64) 4.67 MiB 4.67 MiB 0 B (0.00%)
vp (Windows ARM64) 5.33 MiB 5.33 MiB 0 B (0.00%)
NAPI (Windows ARM64) 27.57 MiB 27.57 MiB -1.00 KiB (-0.00%)
Trampoline (Windows ARM64) 13.00 KiB 13.00 KiB 0 B (0.00%)
Installer (Windows ARM64) 3.85 MiB 3.85 MiB 0 B (0.00%)
gzip -9 sizes
Binary Latest release Preview Change
vp (macOS ARM64) 3.20 MiB 3.20 MiB +77 B (+0.00%)
NAPI (macOS ARM64) 18.25 MiB 18.25 MiB -3.75 KiB (-0.02%)
vp (macOS x64) 3.38 MiB 3.38 MiB +83 B (+0.00%)
NAPI (macOS x64) 19.44 MiB 19.44 MiB -114 B (-0.00%)
vp (Linux ARM64 GNU) 3.69 MiB 3.69 MiB +140 B (+0.00%)
NAPI (Linux ARM64 GNU) 13.31 MiB 13.32 MiB +404 B (+0.00%)
vp (Linux ARM64 musl) 3.71 MiB 3.71 MiB +202 B (+0.01%)
NAPI (Linux ARM64 musl) 13.01 MiB 13.01 MiB +276 B (+0.00%)
vp (Linux x64 GNU) 3.76 MiB 3.76 MiB -211 B (-0.01%)
NAPI (Linux x64 GNU) 14.12 MiB 14.12 MiB -2.47 KiB (-0.02%)
vp (Linux x64 musl) 3.78 MiB 3.78 MiB +160 B (+0.00%)
NAPI (Linux x64 musl) 13.66 MiB 13.66 MiB -2.59 KiB (-0.02%)
vp (Windows x64) 2.82 MiB 2.82 MiB +562 B (+0.02%)
NAPI (Windows x64) 12.69 MiB 12.69 MiB +969 B (+0.01%)
Trampoline (Windows x64) 7.14 KiB 7.14 KiB +1 B (+0.01%)
Installer (Windows x64) 2.24 MiB 2.24 MiB +26 B (+0.00%)
vp (Windows ARM64) 2.69 MiB 2.69 MiB +503 B (+0.02%)
NAPI (Windows ARM64) 12.05 MiB 12.05 MiB +367 B (+0.00%)
Trampoline (Windows ARM64) 6.93 KiB 6.93 KiB -1 B (-0.01%)
Installer (Windows ARM64) 2.14 MiB 2.14 MiB +72 B (+0.00%)

Raw sizes are uncompressed file sizes. gzip sizes recompress each binary at level 9; they are not package or download archive sizes.
The baseline uses published release files, including NAPI packages from npm at the same version. Build versions and toolchains can affect the difference.

@github-actions

Copy link
Copy Markdown
Contributor

Registry bridge build (e8b8026)

This commit build is published to the registry bridge, which serves these as ordinary npm versions (every other package proxies to npmjs):

Package Version
vite-plus 0.0.0-commit.e8b80263393cde404299fef86c7caa6e975390e1
@voidzero-dev/vite-plus-core 0.0.0-commit.e8b80263393cde404299fef86c7caa6e975390e1
create-vite-plus 0.0.0-commit.e8b80263393cde404299fef86c7caa6e975390e1

Install the Vite+ CLI built from this commit, then migrate a project:

# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/voidzero-dev/vite-plus/e8b80263393cde404299fef86c7caa6e975390e1/packages/cli/install.sh | VP_PR_VERSION=3206 VP_LEGACY_INSTALLER_URL=https://raw.githubusercontent.com/voidzero-dev/vite-plus/e8b80263393cde404299fef86c7caa6e975390e1/packages/cli/install-legacy.sh bash
# Windows (PowerShell)
$env:VP_PR_VERSION="3206"; $env:VP_LEGACY_INSTALLER_URL="https://raw.githubusercontent.com/voidzero-dev/vite-plus/e8b80263393cde404299fef86c7caa6e975390e1/packages/cli/install-legacy.ps1"; irm https://raw.githubusercontent.com/voidzero-dev/vite-plus/e8b80263393cde404299fef86c7caa6e975390e1/packages/cli/install.ps1 | iex

Or download the standalone Windows installer built from this commit:

Architecture Installer
x64 vp-setup-x86_64-pc-windows-msvc.exe
Arm64 vp-setup-aarch64-pc-windows-msvc.exe

GitHub requires you to sign in and downloads each installer as a ZIP artifact. Extract vp-setup.exe, then run it against this preview build:

.\vp-setup.exe --version "0.0.0-commit.e8b80263393cde404299fef86c7caa6e975390e1" --registry "https://registry-bridge.viteplus.dev/"

After installing, upgrade the current project's vite-plus to this test build with:

vp migrate

Or create a new project from this commit without installing the CLI:

export npm_config_registry=https://registry-bridge.viteplus.dev/ pnpm_config_registry=https://registry-bridge.viteplus.dev/
pnpm create vite-plus@0.0.0-commit.e8b80263393cde404299fef86c7caa6e975390e1 # or: npm create vite-plus@0.0.0-commit.e8b80263393cde404299fef86c7caa6e975390e1
$env:npm_config_registry="https://registry-bridge.viteplus.dev/"; $env:pnpm_config_registry="https://registry-bridge.viteplus.dev/"
pnpm create vite-plus@0.0.0-commit.e8b80263393cde404299fef86c7caa6e975390e1 # or: npm create vite-plus@0.0.0-commit.e8b80263393cde404299fef86c7caa6e975390e1

pnpm 11+ reads pnpm_config_registry, npm and older pnpm read npm_config_registry. The new project pins this build, so keep the registry set for later installs, or configure it as below.

Or point your package manager at the bridge registry https://registry-bridge.viteplus.dev/:

Package manager Registry config
npm / pnpm / Bun .npmrc: registry=https://registry-bridge.viteplus.dev/
Yarn (v2+) .yarnrc.yml: npmRegistryServer: "https://registry-bridge.viteplus.dev/"

Then pin the build (vite aliases to vite-plus-core; pnpm can use a catalog, npm an overrides entry):

{
  "devDependencies": {
    "vite-plus": "0.0.0-commit.e8b80263393cde404299fef86c7caa6e975390e1",
    "vite": "npm:@voidzero-dev/vite-plus-core@0.0.0-commit.e8b80263393cde404299fef86c7caa6e975390e1"
  }
}

@github-actions

Copy link
Copy Markdown
Contributor

🐳 Docker preview image

Built from this PR's registry bridge build:

Image Compressed size
ghcr.io/voidzero-dev/vite-plus:pr-3206 218MB
# remove any stale local copy from a previous run, then pull fresh
docker rmi ghcr.io/voidzero-dev/vite-plus:pr-3206 2>/dev/null; docker pull ghcr.io/voidzero-dev/vite-plus:pr-3206

Quick check:

docker run --rm ghcr.io/voidzero-dev/vite-plus:pr-3206 vp --version

See docs/guide/docker.md for usage.

fengmk2 added a commit to why-reproductions-are-required/vite-plus-jest-dom-repro that referenced this pull request Oct 23, 2026
`npm@11.11.1` exhausts memory during `vp migrate` when ecosystem CI
applies Vitest prerelease coverage overrides. Update the package manager
pin to `npm@12.2.1` so migration completes with the standard overrides.

This removes the need for the fixture exception in
[voidzero-dev/vite-plus#3206](voidzero-dev/vite-plus#3206).
The new npm version requires Node.js `^22.22.2 || ^24.15.0 || >=26.0.0`.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview-build Publish this PR's commits to the registry bridge as preview builds test: create-e2e Run `vp create` e2e tests test: e2e Auto run e2e tests test: install-e2e run vite install e2e test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant