/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unused-vars */ import 'bun:test'; // Vitest APIs that the compat shim adds to bun:test. declare module 'bun:test' { interface Expect { // Vitest-style loose matcher arguments: Bun's strict ones reject readonly and widened values. (actual?: unknown): Matchers; poll( fn: () => T | Promise, options?: { timeout?: number; interval?: number }, ): Matchers> & { not: Matchers> } & Record; } interface Matchers { toHaveBeenCalledOnce(): void; toHaveBeenCalledExactlyOnceWith(...args: unknown[]): void; } }