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