FuncType - v0.45.0
    Preparing search index...

    Type Alias TestContextType

    Creates a TestContext for testing IO effects with mocked services.

    const ctx = TestContext.make()
    .withService(Logger, mockLogger)
    .withService(Database, mockDb)

    const result = await ctx.run(myProgram)
    type TestContextType = {
        make: <R extends unknown = never>() => TestContextType<R>;
        withClock: () => TestContextType<TestClockType>;
    }
    Index

    Properties

    Properties

    make: <R extends unknown = never>() => TestContextType<R> = ...

    Creates a new empty TestContext

    withClock: () => TestContextType<TestClockType> = ...

    Creates a TestContext with a TestClock already provided