Vvi
Bun

variable

test.vi

const vi: { advanceTimersByTime: typeof jest.advanceTimersByTime; advanceTimersToNextTimer: typeof jest.advanceTimersToNextTimer; clearAllMocks: typeof jest.clearAllMocks; clearAllTimers: typeof jest.clearAllTimers; fn: typeof jest.fn; getTimerCount: typeof jest.getTimerCount; isFakeTimers: typeof jest.isFakeTimers; mock: typeof mock.module; resetAllMocks: typeof jest.resetAllMocks; restoreAllMocks: typeof jest.restoreAllMocks; runAllTimers: typeof jest.runAllTimers; runOnlyPendingTimers: typeof jest.runOnlyPendingTimers; spyOn: typeof spyOn; useFakeTimers: typeof jest.useFakeTimers; useRealTimers: typeof jest.useRealTimers }

Vitest-compatible mocking utilities Provides Vitest-style mocking API for easier migration from Vitest to Bun