Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

feat(deps): upgrade Vitest to 5.2.0-beta.1 - #3644

Draft
fengmk2 wants to merge 2 commits into
mainfrom
feat/vitest-5.2.0-beta.1
Draft

fengmk2 wants to merge 2 commits into
mainfrom
feat/vitest-5.2.0-beta.1

Conversation

@fengmk2

@fengmk2 fengmk2 commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Summary

This PR upgrades the bundled Vitest to 5.2.0-beta.1 before the stable 5.2.0, so that incompatibilities show early. Keep it as a draft until Vitest 5.2.0 is stable.

Changes

  • Pins vitest and the official @vitest/* catalog entries to 5.2.0-beta.1. Syncs VITEST_VERSION, the docs, and the test_v5_* fixture pins.
  • vp test --help lists the new --seed <seed> and --replaySeed <seed> flags with the upstream text. vp test already forwards both flags.
  • Vitest 5.2 prints Seed <value> in every run summary. Without a seed option, the value is a new random integer on each run. The snapshot runner masks the generated integer as <seed>, so a seed that a fixture sets stays visible. The re-recorded snapshots gain 43 of these lines.
  • @vitest/browser-webdriverio@5.0.0 depends on @vitest/browser: ^5.0.0, which does not match a prerelease. Without an override, the workspace installed a second @vitest/browser@5.1.2 and @vitest/ui@5.1.2, and the provider loaded a different browser package than the runner. A workspace override now points the provider's @vitest/browser to the catalog entry.
  • The Preview real-timer regression from Vitest 4.1.1 is still present. The fixture comment names the new version.
  • The CI clone action (packages/tools/src/vendored-vitest.ts) and sync-remote accepted only an exact stable v5 pin. They now also accept an exact v5 prerelease. Ranges, other majors, and malformed versions are still rejected.

Upstream changes that can affect user code

Vite+ does not use these APIs. The vitest export map did not change, so the vite-plus/test* shims stay the same.

  • vitest.getSeed() always returns a string. Before, it returned number | null, and null meant that tests were not shuffled. The Running tests with seed "..." banner line is gone.
  • sequence.seed and --sequence.seed are deprecated in favor of the top-level seed option and --seed. Vitest no longer reads ResolvedConfig.sequence.seed. The runtime config has seed: string in place of sequence.seed.
  • @vitest/utils/helpers no longer exports shuffle.
  • The test context has a built-in random. A user fixture named random replaces it.

Before merge

  • .github/scripts/upgrade-deps.ts selects the latest stable 5.x. Its next run on main would set the catalog back to 5.1.2.
  • Users of @vitest/browser-webdriverio on a Vite+ release with this beta need the same @vitest/browser override.
  • Decide if main keeps the prerelease pin rule. If not, revert the tools commit when the stable 5.2.0 replaces the beta.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

✅ Staging deployment successful!

Preview: https://viteplus-staging.void.app/
Commit: 5261e7f

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Cloudflare builds and deploys previews for this pull request. Learn more about Cloudflare previews.

Worker Status Deployment Commit
viteplus-dev Deployed Preview 5261e7f

Updated: Dec 3, 2026, 02:38 UTC | Dashboard

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

CLI artifact sizes (5261e7f)

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.52 MiB 2.52 MiB +1.26 KiB (+0.05%)
packages/core/dist Directory total 4.22 MiB 4.22 MiB +21 B (+0.00%)
Combined package dist Directory total 6.74 MiB 6.74 MiB +1.28 KiB (+0.02%)
vp (Linux x64) Binary 9.28 MiB 9.28 MiB 0 B (0.00%)
vp (Linux x64) gzip -9 4.24 MiB 4.24 MiB 0 B (0.00%)
NAPI (Linux x64) Binary 37.97 MiB 37.97 MiB 0 B (0.00%)
NAPI (Linux x64) gzip -9 15.32 MiB 15.32 MiB 0 B (0.00%)
vp (macOS ARM64) Binary 6.11 MiB 6.11 MiB 0 B (0.00%)
vp (macOS ARM64) gzip -9 3.63 MiB 3.63 MiB 0 B (0.00%)
NAPI (macOS ARM64) Binary 44.38 MiB 44.38 MiB 0 B (0.00%)
NAPI (macOS ARM64) gzip -9 19.42 MiB 19.42 MiB 0 B (0.00%)
vp (Windows x64) Binary 7.25 MiB 7.25 MiB 0 B (0.00%)
vp (Windows x64) gzip -9 3.32 MiB 3.32 MiB 0 B (0.00%)
NAPI (Windows x64) Binary 33.86 MiB 33.86 MiB 0 B (0.00%)
NAPI (Windows x64) gzip -9 14.02 MiB 14.02 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.69 MiB 4.69 MiB 0 B (0.00%)
Installer (Windows x64) gzip -9 2.25 MiB 2.25 MiB +1 B (+0.00%)

fengmk2 and others added 2 commits December 3, 2026 10:36
- Pin vitest and the official @vitest/* catalog entries to 5.2.0-beta.1,
  and sync VITEST_VERSION, the docs, and the test_v5_* fixtures.
- Add the new --seed and --replaySeed flags to the static vp test help.
- Mask the random run seed that Vitest 5.2 prints in each summary.
- Keep @vitest/browser-webdriverio on the catalog @vitest/browser: its
  ^5.0.0 range excludes the prerelease and installed a second 5.1.2 copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The CI clone action and sync-remote accepted only an exact stable v5
runner pin, so every CI job stopped before installation. Accept an exact
v5 prerelease too. Ranges, other majors, and malformed versions are still
rejected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fengmk2
fengmk2 force-pushed the feat/vitest-5.2.0-beta.1 branch from bbcca55 to 5261e7f Compare December 3, 2026 02:37

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant