import { describe, expect, it, vi } from "vitest"; // tests/setup.ts restores real timers after every test, so a test that fails // before its own vi.useRealTimers() does not hand fake timers to the next one. describe("global test setup", () => { it("may end with fake timers still installed", () => { vi.useFakeTimers(); expect(vi.isFakeTimers()).toBe(true); }); it("starts the next test on real timers", () => { expect(vi.isFakeTimers()).toBe(false); }); });