MtoHaveReturnedTimes
Bun

method

test.Matchers.toHaveReturnedTimes

times: number
): void;

Ensures that a mock function has returned successfully at times times.

A promise that is unfulfilled will be considered a failure. If the function threw an error, it will be considered a failure.