Skip to content

TestPath <TSnapshot, TEvent>

Hierarchy

Index

Properties

description

description: string

state

state: TSnapshot

The ending state of the path.

steps

steps: Steps<TSnapshot, TEvent>

The ordered array of state-event pairs (steps) which reach the ending state.

test

test: (params: TestParam<TSnapshot, TEvent>) => Promise<TestPathResult>

Type declaration

    • Tests and executes each step in steps sequentially, and then tests the postcondition that the state is reached.


      Parameters

      Returns Promise<TestPathResult>

testSync

testSync: (params: TestParam<TSnapshot, TEvent>) => TestPathResult

Type declaration

weight

weight: number

The combined weight of all steps in the path.