import { test, expect, mock } from "bun:test";
test("mock matchers", () => {
const mockFn = mock();
mockFn("hello", 42);
mockFn("world", 100);
// Called at all
expect(mockFn).toHaveBeenCalled();
// Called specific number of times
expect(mockFn).toHaveBeenCalledTimes(2);
// Called with specific arguments
expect(mockFn).toHaveBeenCalledWith("hello", 42);
expect(mockFn).toHaveBeenLastCalledWith("world", 100);
expect(mockFn).toHaveBeenNthCalledWith(1, "hello", 42);
expect(mockFn).toHaveBeenNthCalledWith(2, "world", 100);
});