MtoHaveLastReturnedWith
Bun

method

test.Matchers.toHaveLastReturnedWith

expected: unknown
): void;

Ensures that a mock function has returned a specific value on its last invocation. This matcher uses deep equality, like toEqual(), and supports asymmetric matchers.