method
test.MatchersBuiltin.toHaveLastResolvedWith
expected: unknown
): R;
Ensures that the promise returned by a mock function's last call has resolved with a specific value. This matcher uses deep equality, like toEqual(), and supports asymmetric matchers.