TestLive overview
Added in v2.0.0
Table of contents
utils
TestLive
Signature
export declare const TestLive: Context.Tag<TestLive, TestLive>
Added in v2.0.0
TestLive (interface)
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
export interface TestLive {
readonly [TestLiveTypeId]: TestLiveTypeId
provide<A, E, R>(effect: Effect.Effect<A, E, R>): Effect.Effect<A, E, R>
}
Added in v2.0.0
TestLiveTypeId
Signature
export declare const TestLiveTypeId: typeof TestLiveTypeId
Added in v2.0.0
TestLiveTypeId (type alias)
Signature
export type TestLiveTypeId = typeof TestLiveTypeId
Added in v2.0.0
make
Signature
export declare const make: (services: Context.Context<DefaultServices.DefaultServices>) => TestLive
Added in v2.0.0