import { BaseControllerClass, ModuleClass, ModuleDefinition, Sequence, } from '../' type Action
= (context: { props: P }) => T
export interface SnapshotTest {
mutate: (method: string, path: string, value: any) => SnapshotTest
mock: (path: string, value: any) => SnapshotTest
mockResolvedPromise: (path: string, value: any) => SnapshotTest
mockRejectedPromise: (path: string, value: any) => SnapshotTest
run: (sequence: string, payload: {}) => Promise {
controller: BaseControllerClass
props: P
state: any
output: T
}
interface RunSequenceResult0 {
'0': RunActionResult
}
interface RunSequenceResult1 {
'0': RunActionResult
'1': RunActionResult
}
interface RunSequenceResult2 {
'0': RunActionResult
'1': RunActionResult
'2': RunActionResult
}
export function runAction (
action: Action | T>,
fixtures?: { props: P & any } & any
): Promise (
sequence: [Action | T0>],
fixtures?: { props: P & any } & any,
options?: any
): Promise (
sequence: [Action | T0>, Action (
sequence: [
Action | T0>,
Action