Interface: ActionFactoryMock<Args, Context, Extension>
Mock for an action factory with mocked results and ran context history.
Type parameters
• Args extends any
[]
• Context extends object
• Extension extends object
Properties
history
readonly
history: readonlyActionMockedHistoryItem
[]
Source
makeAction()
makeAction: (...
args
) =>Action
<Context
,Extension
>
Parameters
• ...args: Args
Returns
Action
<Context
, Extension
>
Source
mockResult()
mockResult: <
RC
>(result
?,predicate
?) =>void
Type parameters
• RC extends object
= any
Parameters
• result?: unknown
• predicate?: ActionMockedPredicate
<RC
>
Returns
void
Source
mockResultOnce()
mockResultOnce: <
RC
>(result
?,predicate
?,options
?) =>void
Type parameters
• RC extends object
= any
Parameters
• result?: unknown
• predicate?: ActionMockedPredicate
<RC
>
• options?: ActionMockedRunOptions
<RC
>
Returns
void
Source
mockResultTimes()
mockResultTimes: <
RC
>(times
,result
?,predicate
?,options
?) =>void
Type parameters
• RC extends object
= any
Parameters
• times: number
• result?: unknown
• predicate?: ActionMockedPredicate
<RC
>
• options?: ActionMockedRunOptions
<RC
>
Returns
void
Source
mockResultTwice()
mockResultTwice: <
RC
>(result
?,predicate
?,options
?) =>void
Type parameters
• RC extends object
= any
Parameters
• result?: unknown
• predicate?: ActionMockedPredicate
<RC
>
• options?: ActionMockedRunOptions
<RC
>
Returns
void
Source
reset()
reset: () =>
void
Returns
void
Source
resetHistory()
resetHistory: () =>
void
Returns
void
Source
resetMocks()
resetMocks: () =>
void
Returns
void