effect
effect copied to clipboard
Add vitest 4.x support to @effect/vitest
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.