Skip to content
API reference

testing

Import
import * as api from "@fungi.computer/carrier/testing";
Kind Export Description
type alias MemoryOutbox String-row outbox for deterministic tests and quick starts; no persistence.
function createMemoryOutbox() Create an independent in-process outbox for trusted tests and examples.

MemoryOutboxtype alias

Section titled “MemoryOutbox”
Signature
type MemoryOutbox = Readonly<{
put: (key, value) => Promise<void>;
read: (key) => Promise<string | undefined>;
list: (
limit,
afterKey?,
) => Promise<
readonly Readonly<{
key: string;
value: string;
}>[]
>;
delete: (key) => Promise<void>;
}>;

String-row outbox for deterministic tests and quick starts; no persistence.

createMemoryOutbox()function

Section titled “createMemoryOutbox()”
Signature
function createMemoryOutbox(): MemoryOutbox;

Create an independent in-process outbox for trusted tests and examples.

MemoryOutbox