method
test.Matchers.toHaveResolvedWith
expected: unknown
): void;
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.