test: stabilize gateway ports and timers
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user