method
test.Matchers.toHaveNthResolvedWith
n: number,
expected: unknown
): void;
Ensures that the promise returned by a mock function's nth call has resolved with a specific value. This matcher uses deep equality, like toEqual(), and supports asymmetric matchers.
@param n
The 1-based index of the function call
@param expected
The expected resolved value