@xstate/test
Index
Classes
Functions
Interfaces
Type Aliases
Type Aliases
EventExecutor
Type parameters
- TSnapshot: Snapshot<unknown>
- TEvent: EventObject
Type declaration
Parameters
step: Step<TSnapshot, TEvent>
Returns Promise<any> | void
GetPathsOptions
Type parameters
- TSnapshot: Snapshot<unknown>
- TEvent: EventObject
- TInput
PathGenerator
Type parameters
- TSnapshot: Snapshot<unknown>
- TEvent: EventObject
- TInput
Type declaration
Parameters
behavior: ActorLogic<TSnapshot, TEvent, TInput>
options: TraversalOptions<TSnapshot, TEvent>
Returns StatePath<TSnapshot, TEvent>[]
StatePredicate
Type parameters
- TState
Type declaration
Parameters
state: TState
Returns boolean
TestMachineOptions
Type parameters
- TContext: MachineContext
- TEvent: EventObject
- TTypesMeta: TypegenConstraint = TypegenDisabled
TestTransitionsConfig
Type parameters
- TContext: MachineContext
- TEvent: EventObject
- TTestContext
Executes an effect using the
testContext
andevent
that triggers the representedevent
.