mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
11 lines
263 B
TypeScript
11 lines
263 B
TypeScript
import { installTestEnv } from "./test-env";
|
|
import { afterEach, vi } from "vitest";
|
|
|
|
const { cleanup } = installTestEnv();
|
|
process.on("exit", cleanup);
|
|
|
|
afterEach(() => {
|
|
// Guard against leaked fake timers across test files/workers.
|
|
vi.useRealTimers();
|
|
});
|