Effect CommunityEC
Effect Community3mo ago
3 replies
Johnil

Is there an equivalent of `it.layer` that works with `it.live`?

Using @effect/vitest, there's an it.live function that uses the live version of default services instead of test versions, and there's a it.layer(deps) which lets you pass in a later. But the the it given by it.layer only has
it.effect
on it which has the test services, not the live services, there isn't a it.live on it.

Is there a way to share a layer between tests that use the live versions of default services in the same way that it.layer does for test services?
Was this page helpful?