Connectum API Reference / @connectum/test-fixtures / index / MockCall
Interface: MockCall<Args, Result> ​
Defined in: mock-compat.ts:19
A single recorded invocation of a MockFn.
Type Parameters ​
Args ​
Args extends readonly unknown[] = readonly unknown[]
Result ​
Result = unknown
Properties ​
arguments ​
readonlyarguments:Args
Defined in: mock-compat.ts:21
The arguments passed to the mock function.
error ​
readonlyerror:unknown
Defined in: mock-compat.ts:29
What the implementation threw; undefined when it returned.
result ​
readonlyresult:Result|undefined
Defined in: mock-compat.ts:27
What the implementation returned; undefined when it threw. For an async implementation this is the promise, and a rejection is not recorded as error (the same as node:test).
this ​
readonlythis:unknown
Defined in: mock-compat.ts:31
The this the mock function was called with.