Skip to content

Add vitest 4.x support to @effect/vitest #5796

Description

@PaulRBerg

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 "vitest@4.0.14"

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.0Used for issues, pull requests, etc. that are relevant for the `v3` branch targeting Effect v3.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions