Skip to main content Link Search Menu Expand Document (external link)

TestLive.ts overview

Since v2.0.0


Exports Grouped by Category


utils

TestLive

Signature

declare const TestLive: Context.Tag<TestLive, TestLive>

Source

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>
}

Source

Since v2.0.0

TestLiveTypeId

Signature

declare const TestLiveTypeId: unique symbol

Source

Since v2.0.0

TestLiveTypeId (type alias)

Signature

type TestLiveTypeId = typeof TestLiveTypeId

Source

Since v2.0.0

make

Signature

declare const make: (services: Context.Context<DefaultServices.DefaultServices>) => TestLive

Source

Since v2.0.0