TestLive.ts overview
Since v2.0.0
Exports Grouped by Category
utils
TestLive
Signature
declare const TestLive: Context.Tag<TestLive, TestLive>
Since 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>
}
Since v2.0.0
TestLiveTypeId
Signature
declare const TestLiveTypeId: unique symbol
Since v2.0.0
TestLiveTypeId (type alias)
Signature
type TestLiveTypeId = typeof TestLiveTypeId
Since v2.0.0
make
Signature
declare const make: (services: Context.Context<DefaultServices.DefaultServices>) => TestLive
Since v2.0.0