MtoHaveReturned
Bun

method

test.Matchers.toHaveReturned

Ensures that a mock function has returned successfully at least once.

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