TestPath <TSnapshot, TEvent>
Hierarchy
- StatePath<TSnapshot, TEvent>
- TestPath
Index
Properties
description
state
steps
The ordered array of state-event pairs (steps) which reach the ending state
.
test
Type declaration
Tests and executes each step in
steps
sequentially, and then tests the postcondition that thestate
is reached.Parameters
params: TestParam<TSnapshot, TEvent>
Returns Promise<TestPathResult>
testSync
Type declaration
Parameters
params: TestParam<TSnapshot, TEvent>
Returns TestPathResult
weight
The combined weight of all steps in the path.
The ending state of the path.