2026-01-09 16:27:24 +01:00
|
|
|
import { installTestEnv } from "./test-env";
|
2026-01-18 04:29:52 +00:00
|
|
|
import { afterEach, vi } from "vitest";
|
2025-12-26 11:45:16 +00:00
|
|
|
|
2026-01-09 16:27:24 +01:00
|
|
|
const { cleanup } = installTestEnv();
|
|
|
|
|
process.on("exit", cleanup);
|
2026-01-18 04:29:52 +00:00
|
|
|
|
|
|
|
|
afterEach(() => {
|
|
|
|
|
// Guard against leaked fake timers across test files/workers.
|
|
|
|
|
vi.useRealTimers();
|
|
|
|
|
});
|