Skip to content

TestAdapter

Defined in: src/adapters/testing.ts:9

A GatewayAdapter implementation for unit testing.

Provides a waitUntil implementation that collects background promises, allowing tests to await adapter.waitAll() before finishing.

new TestAdapter(): TestAdapter

TestAdapter

reset(): void

Defined in: src/adapters/testing.ts:33

Reset the collected promises.

void


waitAll(): Promise<void>

Defined in: src/adapters/testing.ts:22

Await all pending background work collected via waitUntil.

Promise<void>


waitUntil(promise): void

Defined in: src/adapters/testing.ts:15

Add a promise to the background work queue.

Promise<unknown>

void

GatewayAdapter.waitUntil