mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
test(extensions): reset fake timers before tests
(cherry picked from commit 97dde19577)
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
import { afterAll } from "vitest";
|
||||
import { afterAll, beforeEach, vi } from "vitest";
|
||||
import { installSharedTestSetup } from "./setup.shared.js";
|
||||
|
||||
const testEnv = installSharedTestSetup({ loadProfileEnv: false });
|
||||
|
||||
beforeEach(() => {
|
||||
vi.useRealTimers();
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
testEnv.cleanup();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user