MockResult
interface in meocord/testing Since 4.0.0
interface MockResult<T = unknown>One call's outcome, as a mock function records it: the value it returned, or the error it threw.
Members
type
type: 'return' | 'throw''return' when the call returned, 'throw' when it threw.
value
value: TWhat the call returned, or the error it threw.