Skip to content

Function: getFunctionMock()

ts
function getFunctionMock(callable: AnyCallable): Mock;

Get a callable as its jest mock.

Parameters

ParameterTypeDescription
callableAnyCallableFunction expected to be a jest mock.

Returns

Mock

The jest mock.