Beignet API reference
    Preparing search index...

    Interface TestContextFixture<Ctx, Ports>

    Test context fixture returned by createTestContext(...).

    Type Parameters

    Hierarchy (View Summary)

    Index

    Memory audit port, exposed for assertions.

    cache: CachePort

    Test cache port.

    clock: ClockPort

    Test clock port.

    ctx: Ctx

    Assembled app context under test.

    dispatchedJobs: RecordedJobDispatch[]

    Jobs dispatched through jobs.

    Memory error reporter, exposed for assertions.

    eventBus: EventBusPort

    Recording event bus port.

    events: RecordedEvent[]

    Recorded events published through eventBus.

    Test feature flags port.

    Memory idempotency store.

    Test ID generator.

    Recording job dispatcher port.

    Test locks port.

    logger: LoggerPort

    Test logger port.

    Memory mailer, exposed for delivery assertions.

    notifications: MemoryNotificationPort

    Memory notification port, exposed for delivery assertions.

    Memory outbox, exposed for durable workflow assertions.

    Memory payments port.

    ports: Ports

    App ports to pass into a use-case or route test context.

    rateLimit: RateLimitPort

    Test rate-limit port.

    Test search port.

    storage: StoragePort

    Memory storage port.

    uow: UnitOfWorkPort<unknown>

    Unit of Work port installed on ports.

    • Explicit-resource-management alias for dispose(), so fixtures work with using.

      Returns void

    • Clear the ambient request context entered by this fixture.

      Returns void