Skip to content

Conversation

@Hoishin
Copy link

@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

changeset-bot bot commented Nov 22, 2025

🦋 Changeset detected

Latest commit: 01ec940

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

This PR includes changesets to release 36 packages
Name Type
@effect/opentelemetry Major
effect Minor
@effect/vitest Major
@effect/cli Major
@effect/cluster Major
@effect/experimental Major
@effect/platform-browser Major
@effect/platform-bun Major
@effect/platform-node-shared Major
@effect/platform-node Major
@effect/platform Major
@effect/printer-ansi Major
@effect/printer Major
@effect/rpc Major
@effect/sql-clickhouse Major
@effect/sql-d1 Major
@effect/sql-drizzle Major
@effect/sql-kysely Major
@effect/sql-libsql Major
@effect/sql-mssql Major
@effect/sql-mysql2 Major
@effect/sql-pg Major
@effect/sql-sqlite-bun Major
@effect/sql-sqlite-do Major
@effect/sql-sqlite-node Major
@effect/sql-sqlite-react-native Major
@effect/sql-sqlite-wasm Major
@effect/sql Major
@effect/typeclass Major
@effect/workflow Major
@effect/ai Major
@effect/ai-amazon-bedrock Major
@effect/ai-anthropic Major
@effect/ai-google Major
@effect/ai-openai Major
@effect/ai-openrouter Major

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

Copilot finished reviewing on behalf of Hoishin November 22, 2025 21:03
Copy link

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.

@effect-bot effect-bot force-pushed the next-minor branch 15 times, most recently from c3e8732 to ce61126 Compare November 27, 2025 22:21
@effect-bot effect-bot force-pushed the next-minor branch 17 times, most recently from dd414da to aa3efac Compare December 4, 2025 20:58
@effect-bot effect-bot force-pushed the next-minor branch 2 times, most recently from 11852ab to 44f6a14 Compare December 5, 2025 17:11
* main: (37 commits)
  Version Packages (Effect-TS#5869)
  Fix the arbitrary generator for BigDecimal to allow negative scales (Effect-TS#5875)
  Widen otel logs peer dep range (Effect-TS#5863)
  Ensure Devtools Tracer does not cut off span options (Effect-TS#5864)
  Version Packages (Effect-TS#5848)
  Update generated OpenAI schema definitions (Effect-TS#5850)
  Update generated OpenRouter definitions and fix logprob schema (Effect-TS#5849)
  add Workflow.scope, a seperate Scope that only closes on completion (Effect-TS#5846)
  ensure PersistedQueue memory driver removes items (Effect-TS#5847)
  Version Packages (Effect-TS#5838)
  support idempotent offers to PersistedQueue (Effect-TS#5837)
  Version Packages (Effect-TS#5836)
  consider clean http interrupts (already responded) as successful responses (Effect-TS#5835)
  Version Packages (Effect-TS#5830)
  reset redis staging area on a schedule for PersistedQueue (Effect-TS#5829)
  Version Packages (Effect-TS#5828)
  add TestRunner & SingleRunner modules (Effect-TS#5827)
  Version Packages (Effect-TS#5825)
  improve ordering guarantees for SqlPersistedQueue (Effect-TS#5824)
  Version Packages (Effect-TS#5822)
  ...

# Conflicts:
#	pnpm-lock.yaml
@Hoishin Hoishin marked this pull request as draft December 7, 2025 02:51
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