Skip to content

TestLive

5 exports Added in v2.0.0 Source

Other

make

Added in v2.0.0 Source

Signature

declare function make(services: Context<DefaultServices>): TestLive;

TestLive

Added in v2.0.0 Source

Signature

declare const TestLive: Tag<TestLive, TestLive>;

TestLive interface

Added in v2.0.0 Source

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;

TestLiveTypeId type

Added in v2.0.0 Source

Signature

type TestLiveTypeId = typeof TestLiveTypeId;