Skip to content

Home > intention-kernel/testing > createMemoryDurability

createMemoryDurability() function ​

Create an in-memory durability adapter for conformance tests and local examples. It implements serialization, replay and effect semantics, but it does not survive process restarts and is not production persistence.

Signature:

typescript
export declare function createMemoryDurability(options?: {
    readonly now?: () => string;
}): Durability;

Parameters ​

Parameter

Type

Description

options

{ readonly now?: () => string; }

(Optional) Optional deterministic clock used by receipt assertions.

Returns:

Durability

A fresh isolated durability adapter.