API reference
testing
Import
Section titled “Import”import * as api from "@fungi.computer/carrier/testing";Exports
Section titled “Exports”| 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”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()”function createMemoryOutbox(): MemoryOutbox;Create an independent in-process outbox for trusted tests and examples.