Interface: GameTestingActions<T>
Defined in: src/core/testing.ts:118
Per-action overrides an app can register via setActions so Game.testing's
window-exposed actions run the app's own narration functions — with whatever UI-only side
effects they add (loading state, blocking while a menu is open, refreshing cached interface
data, ...) — instead of calling narrationUtils.narration / historyUtils.stepHistory directly. Any action left undefined keeps the default behavior.
continue/back take no arguments: the extraProps/options a caller passes to the
corresponding GameTestingAPI method are ignored when an override is registered,
since the override already has its own way to gather props (and typically doesn't support
stepped/replay options). selectChoice receives the resolved choice item instead of the
raw choiceIndex, since looking it up is already handled before the override runs.
Type Parameters
T
T extends object = { }
Properties
back?
> optional back?: () => Promise<void>
Defined in: src/core/testing.ts:120
Returns
Promise<void>
call?
> optional call?: (label, props?) => Promise<StepLabelResultType>
Defined in: src/core/testing.ts:130
Parameters
label
string | LabelAbstract<any, T, number>
props?
T
Returns
Promise<StepLabelResultType>
continue?
> optional continue?: () => Promise<void>
Defined in: src/core/testing.ts:119
Returns
Promise<void>
jump?
> optional jump?: (label, props?) => Promise<StepLabelResultType>
Defined in: src/core/testing.ts:126
Parameters
label
string | LabelAbstract<any, T, number>
props?
T
Returns
Promise<StepLabelResultType>
selectChoice?
> optional selectChoice?: (item) => Promise<void>
Defined in: src/core/testing.ts:121
Parameters
item
Returns
Promise<void>
start?
> optional start?: (label, props?) => Promise<void>
Defined in: src/core/testing.ts:122
Parameters
label
string | LabelAbstract<any, T, number>
props?
T
Returns
Promise<void>