Vitest-compatible mocking utilities Provides Vitest-style mocking API for easier migration from Vitest to Bun
variable
test.vi
const vi: { clearAllMocks: typeof jest.clearAllMocks; fn: typeof jest.fn; module: typeof mock.module; resetAllMocks: typeof jest.resetAllMocks; restoreAllMocks: typeof jest.restoreAllMocks; spyOn: typeof spyOn; useFakeTimers: typeof jest.useFakeTimers; useRealTimers: typeof jest.useRealTimers }