Skip to content

Update vitest to v4#5791

Open
Hoishin wants to merge 5 commits into
Effect-TS:next-minorfrom
Hoishin:feat/update-vitest
Open

Update vitest to v4#5791
Hoishin wants to merge 5 commits into
Effect-TS:next-minorfrom
Hoishin:feat/update-vitest

Conversation

@Hoishin
Copy link
Copy Markdown
Contributor

@Hoishin Hoishin commented Nov 22, 2025

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Update and support Vitest v4

Related

  • Related Issue #
  • Closes #

@github-project-automation github-project-automation Bot moved this to Discussion Ongoing in PR Backlog Nov 22, 2025
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Nov 22, 2025

🦋 Changeset detected

Latest commit: 0d9f0f4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@effect/vitest Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Hoishin Hoishin marked this pull request as ready for review November 22, 2025 21:00
Copilot AI review requested due to automatic review settings November 22, 2025 21:00
@Hoishin Hoishin requested a review from mikearnaldi as a code owner November 22, 2025 21:00
@Hoishin
Copy link
Copy Markdown
Contributor Author

Hoishin commented Nov 22, 2025

Tests are failing even on main branch on my laptop, so I'm checking on CI if there is any failures

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Vitest from v3 to v4, modernizing the test infrastructure and aligning with the latest Vitest APIs and configuration patterns.

Key Changes:

  • Vitest and all related packages updated from v3.2.4 to v4.0.12
  • Configuration migrated from deprecated vitest.workspace.ts to projects option in vitest.config.ts
  • Package @vitest/runner added as new peer dependency for type definitions
  • Test utilities updated to use Vitest v4's assert API

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
vitest.workspace.ts Removed in favor of inline projects configuration
vitest.shared.ts Simplified by moving most config to main vitest.config.ts
vitest.config.ts New centralized config file with projects array for workspace support
pnpm-lock.yaml Updated all vitest-related dependencies from v3.2.4 to v4.0.12
packages/vitest/src/utils.ts Updated to use Vitest v4's assert API, removed node:assert dependency
packages/vitest/src/index.ts Added @vitest/runner types import, simplified TestCollectorCallable interface
packages/vitest/package.json Updated peer dependencies to vitest ^4.0.0 and added @vitest/runner ^4.0.0
package.json Updated root devDependencies for all @vitest/* packages to ^4.0.12
.changeset/tiny-windows-ring.md Documents the vitest v4 support as a minor change
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .changeset/tiny-windows-ring.md
@effect-bot effect-bot force-pushed the next-minor branch 18 times, most recently from 693bd77 to 5ad7701 Compare November 28, 2025 01:33
@Hoishin Hoishin force-pushed the feat/update-vitest branch from 01ec940 to 2d3470b Compare December 9, 2025 09:02
@Hoishin Hoishin changed the base branch from next-minor to main December 9, 2025 09:03
@Hoishin Hoishin changed the base branch from main to next-minor December 9, 2025 09:05
@Hoishin Hoishin marked this pull request as ready for review December 9, 2025 09:06
@effect-bot effect-bot force-pushed the next-minor branch 10 times, most recently from 5540156 to f752fc3 Compare December 13, 2025 05:00
@effect-bot effect-bot force-pushed the next-minor branch 5 times, most recently from 24ae504 to 6bc6da5 Compare December 23, 2025 17:40
Hoishin added 3 commits May 18, 2026 11:48
* upstream/main: (126 commits)
  fix(@effect/cli): use Ansi.blackBright for Weak spans so --help is readable on dark terminals (Effect-TS#6208)
  fix(cli): replace all hyphens in shell completion command names (Effect-TS#6213)
  Version Packages (Effect-TS#6218)
  Support null K8s lastTransitionTime values (Effect-TS#6217)
  Version Packages (Effect-TS#6197)
  Backport workflow suspension failure fixes (Effect-TS#6196)
  clone full v4 history
  Version Packages (Effect-TS#6195)
  preserve fiber context in HttpLayerRouter.addHttpApi so API-level middleware is applied (Effect-TS#6147)
  correct typos in source code (receive, separate) (Effect-TS#6110)
  docs(@effect/vitest): fix return type in fails example (Effect-TS#6163)
  make RpcSerialization.msgPack options configurable (Effect-TS#6161)
  update msgpackr to 1.11.10 for Cloudflare Workers compatibility (Effect-TS#6191)
  fix: floor TestClock nanoseconds before BigInt conversion (Effect-TS#6194)
  chore: disable TypeScript's nightly workflow (Effect-TS#6193)
  Version Packages (Effect-TS#6189)
  (fix: ai-openai) Remove strict param from the OpenAI request body (Effect-TS#6188)
  Version Packages (Effect-TS#6142)
  fix(ai-openai): deduplicate response.output items to prevent invalid JSON concatenation (Effect-TS#6178)
  Change 'in-memory' to 'in_memory' in prompt cache enums (Effect-TS#6187)
  ...
@Hoishin
Copy link
Copy Markdown
Contributor Author

Hoishin commented May 18, 2026

@mikearnaldi would you be able to run CI for this? It should pass now.

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

Labels

None yet

Projects

Status: Discussion Ongoing

Development

Successfully merging this pull request may close these issues.

2 participants