Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

TestLive

5 exports Since v2.0.0 Source

Other

Since v2.0.0

Signature

declare function make(services: Context<DefaultServices>): TestLive
Since v2.0.0

Signature

declare const TestLive: Tag<TestLive, TestLive>

TestLive

interface
Since v2.0.0

The Live trait provides access to the "live" default Effect services from within tests for workflows such as printing test results to the console or timing out tests where it is necessary to access the real implementations of these services.

Signature

interface TestLive {
readonly [TestLiveTypeId]: typeof TestLiveTypeId;
provide<A, E, R>(effect: Effect<A, E, R>): Effect<A, E, R>;
}

Signature

declare const TestLiveTypeId: unique symbol
Since v2.0.0

Signature

type TestLiveTypeId = typeof TestLiveTypeId