[PR #65] [MERGED] chore: upgrade vitest from v3 to v4 #284

Closed
opened 2026-05-06 12:38:58 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/cloudflare/vinext/pull/65
Author: @southpolesteve
Created: 2/25/2026
Status: Merged
Merged: 2/25/2026
Merged by: @southpolesteve

Base: mainHead: chore/upgrade-vitest-4


📝 Commits (1)

  • 41ceeb4 chore: upgrade vitest from v3 to v4

📊 Changes

2 files changed (+81 additions, -150 deletions)

View changed files

📝 package.json (+1 -1)
📝 pnpm-lock.yaml (+80 -149)

📄 Description

Summary

  • Bumps vitest from ^3.2.1 (resolved 3.2.4) to ^4.0.0 (resolved 4.0.18)
  • No config or test code changes needed — the project doesn't use any of the breaking features in Vitest 4 (browser mode, coverage options, workspace files, deprecated pool options, constructor mocking, or test-options-as-3rd-argument objects)

Notable Vitest 4 changes (none affect us currently, but good to be aware of):

  • vite-node replaced with Vite's built-in Module Runner
  • Pool rewrite removes tinypool dependency; poolOptions flattened to top-level
  • workspace config renamed to projects
  • vi.fn().getMockName() returns vi.fn() instead of spy
  • vi.restoreAllMocks no longer resets automocks
  • coverage.all and coverage.extensions removed

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cloudflare/vinext/pull/65 **Author:** [@southpolesteve](https://github.com/southpolesteve) **Created:** 2/25/2026 **Status:** ✅ Merged **Merged:** 2/25/2026 **Merged by:** [@southpolesteve](https://github.com/southpolesteve) **Base:** `main` ← **Head:** `chore/upgrade-vitest-4` --- ### 📝 Commits (1) - [`41ceeb4`](https://github.com/cloudflare/vinext/commit/41ceeb4add2029bf6bcb88496790a4b3eadbb4cb) chore: upgrade vitest from v3 to v4 ### 📊 Changes **2 files changed** (+81 additions, -150 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+1 -1) 📝 `pnpm-lock.yaml` (+80 -149) </details> ### 📄 Description ## Summary - Bumps `vitest` from `^3.2.1` (resolved 3.2.4) to `^4.0.0` (resolved 4.0.18) - No config or test code changes needed — the project doesn't use any of the breaking features in Vitest 4 (browser mode, coverage options, workspace files, deprecated pool options, constructor mocking, or test-options-as-3rd-argument objects) Notable Vitest 4 changes (none affect us currently, but good to be aware of): - `vite-node` replaced with Vite's built-in Module Runner - Pool rewrite removes `tinypool` dependency; `poolOptions` flattened to top-level - `workspace` config renamed to `projects` - `vi.fn().getMockName()` returns `vi.fn()` instead of `spy` - `vi.restoreAllMocks` no longer resets automocks - `coverage.all` and `coverage.extensions` removed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-06 12:38:58 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#284
No description provided.