Skip to content

Interface: MemoryStoreTestOps<T>

Makaio Framework


Makaio Framework / tools-core/testing / MemoryStoreTestOps

Defined in: ../../../tools/core/src/testing/index.ts:18

Domain-specific operations for a working memory type.

Each MemoryStore subclass holds a different kind of working memory (e.g. ArtifactWorkingMemory, TaskWorkingMemory). These callbacks let the shared suite create and list items without knowing the domain.

T

clearItems: (memory) => void

Defined in: ../../../tools/core/src/testing/index.ts:24

Clear all items from the working memory instance.

T

void


createItem: (memory) => void

Defined in: ../../../tools/core/src/testing/index.ts:20

Create a single item in the working memory instance.

T

void


listItems: (memory) => unknown[]

Defined in: ../../../tools/core/src/testing/index.ts:22

Return all items in the working memory instance.

T

unknown[]


memoryClass: (…args) => T

Defined in: ../../../tools/core/src/testing/index.ts:26

Expected constructor class for instanceof checks.

never[]

T