MockFunctionContext
The MockFunctionContext class is used to inspect or manipulate the behavior of mocks created via the MockTracker APIs.
Since
v19.1.0, v18.13.0
Properties
Functions
Link copied to clipboard
This function is used to change the behavior of an existing mock.
Link copied to clipboard
This function is used to change the behavior of an existing mock for a single invocation. Once invocation onCall has occurred, the mock will revert to whatever behavior it would have used had mockImplementationOnce() not been called.
Link copied to clipboard
Resets the call history of the mock function.