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