method
test.MatchersBuiltin.toHaveBeenCalledBefore
failIfNoFirstInvocation?: boolean
): R;
Ensure that a mock function's first call came before mock's first call.
@param mock
The mock function to compare with
@param failIfNoFirstInvocation
Whether to fail when the received mock function was never called. Defaults to true.
Referenced types
type Mock<T extends (...args: any[]) => any> = JestMock.Mock<T>