effect icon indicating copy to clipboard operation
effect copied to clipboard

Add vitest 4.x support to @effect/vitest

Open PaulRBerg opened this issue 1 month ago • 0 comments

Problem

The current @effect/vitest package (v0.27.0) declares a peer dependency on vitest: "^3.2.0", which causes warnings when used with vitest 4.x:

warn: incorrect peer dependency "[email protected]"

Vitest 4.0 was released and projects upgrading to it are now seeing peer dependency warnings when using @effect/vitest.

Solution

Update the peerDependencies in @effect/vitest to include vitest 4.x:

{
  "peerDependencies": {
    "effect": "^3.19.0",
    "vitest": "^3.2.0 || ^4.0.0"
  }
}

[!NOTE] This may require testing to ensure compatibility with vitest 4.x APIs. If there are breaking changes in vitest 4, additional code changes may be needed.

PaulRBerg avatar Nov 25 '25 20:11 PaulRBerg