Skip to content

Vitest 5 - #3368

Merged
david-crespo merged 2 commits into
mainfrom
cache-test-modules-vitest5
Sep 4, 2026
Merged

Vitest 5#3368
david-crespo merged 2 commits into
mainfrom
cache-test-modules-vitest5

Conversation

@david-crespo

Copy link
Copy Markdown
Collaborator

https://vitest.dev/blog/vitest-5.html
https://vitest.dev/guide/migration/

Two changes needed:

  • Switch the date-picker’s partial text assertion to toMatchTextContent. toHaveTextContent now requires exact text, and the button includes the icon’s “Select” title.
  • Ignore .vitest/ and include it in CI artifacts. Automatic failure screenshots now go there instead of following our existing screenshotDirectory setting.

The promised perf improvements turned out to be pretty small:

Suite 4.1.11 5.0.0, upgrade only Change
Node 1.39s 1.33s −4.1%
Chromium 4.15s 4.15s Unchanged
Node + all three browsers 9.13s 8.61s −5.6%

Second commit enables fsModuleCache, as recommended by vitest doctor. Warm Node runs drop to 1.09s, about 22% faster than v4. This mainly helps local test runs.

@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
console Ready Ready Preview Sep 4, 2026 9:59pm UTC

Request Review

@david-crespo
david-crespo enabled auto-merge (squash) September 4, 2026 22:07
@david-crespo
david-crespo merged commit e7ee1bb into main Sep 4, 2026
7 checks passed
@david-crespo
david-crespo deleted the cache-test-modules-vitest5 branch September 4, 2026 22:09
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