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: 77e1fd6

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

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.

1 participant