Skip to content

Update vitest to v4#5791

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

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

Conversation

@Hoishin

@Hoishin Hoishin commented Nov 22, 2025

Copy link
Copy Markdown
Contributor

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

changeset-bot Bot commented Nov 22, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d4d99cb

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

Hoishin commented Nov 22, 2025

Copy link
Copy Markdown
Contributor Author

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

Copilot AI left a comment

Copy link
Copy Markdown

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 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

Hoishin commented May 18, 2026

Copy link
Copy Markdown
Contributor Author

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

Hoishin added 3 commits May 28, 2026 15:10
* upstream/main:
  Version Packages (Effect-TS#6259)
  fix(ai): support empty tool parameters (Effect-TS#6260)
  fix(Data): preserve generic A in TaggedEnum $match arms (Effect-TS#6250)
  Emit `additionalProperties: false` for records with string keys and `Schema.Never` values (Effect-TS#6257)
  Version Packages (Effect-TS#6227)
  Backport cluster shard group fixes (Effect-TS#6255)
@Hoishin

Hoishin commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

Fixed previous CI run failure from type checking. Ready for another CI run.

If a separate PR is preferred for the BigDecimal fix, it's here #6264

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