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