Function: replaceFunctionMock()
ts
function replaceFunctionMock(callable: AnyCallable, newImplementation: AnyCallable): void;Replace a jest mock function implementation.
Parameters
| Parameter | Type | Description |
|---|---|---|
callable | AnyCallable | Function expected to be a jest mock. |
newImplementation | AnyCallable | New implementation to use. |
Returns
void