An array of the arguments passed to the mock function.
interface
test.default.MockFunctionCall
interface MockFunctionCall<F extends Function, ReturnType = F extends (...args: any) => infer T ? T : F extends new (...args: any) => infer T ? T : unknown, Args = F extends (...args: infer Y) => any ? Y : F extends new (...args: infer Y) => any ? Y : unknown[]>
- result: undefined | ReturnType
The value returned by the mocked function.
If the mocked function threw, it will be
undefined
. - target: F extends new (...args: any) => any ? F<F> : undefined
If the mocked function is a constructor, this field contains the class being constructed. Otherwise this will be
undefined
.