TestMachineConfig <TContext, TEvent, TTypesMeta>
Hierarchy
- TestStateNodeConfig<TContext, TEvent>
- TestMachineConfig
Index
Properties
optionalalways
optionalcontext
optionaldescription
A text description of the state node
optionalentry
The action(s) to be executed upon entering the state node.
optionalexit
The action(s) to be executed upon exiting the state node.
optionalhistory
Indicates whether the state node is a history state node, and what type of history: shallow, deep, true (shallow), false (none), undefined (none)
optionalid
The unique ID of the state node, which can be referenced as a transition target via the
#id
syntax.
optionalinitial
optionalmeta
The meta data associated with this state node, which will be returned in State instances.
optionalon
The mapping of event types to their potential transition(s).
optionalonDone
The potential transition(s) to be taken upon reaching a final child state node.
This is equivalent to defining a [done(id)]
transition on this state node's on
property.
optionaloutput
The output data sent with the "xstate.done.state.id" event if this is a final state node.
The output data will be evaluated with the current context
and placed on the .data
property
of the event.
optionalstates
optionaltags
The tags for this state node, which are accumulated into the state.tags
property.
optionaltype
The type of this state node:
'atomic'
- no child state nodes'compound'
- nested child state nodes (XOR)'parallel'
- orthogonal nested child state nodes (AND)'history'
- history state node'final'
- final state node
An eventless transition that is always taken when this state node is active.