mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 09:57:40 +00:00
test(core): reduce mock reset overhead across unit and e2e specs
This commit is contained in:
@@ -70,7 +70,7 @@ describe("announce loop guard (#18264)", () => {
|
||||
|
||||
afterEach(() => {
|
||||
vi.useRealTimers();
|
||||
loadSubagentRegistryFromDisk.mockReset();
|
||||
loadSubagentRegistryFromDisk.mockClear();
|
||||
loadSubagentRegistryFromDisk.mockReturnValue(new Map());
|
||||
saveSubagentRegistryToDisk.mockClear();
|
||||
vi.clearAllMocks();
|
||||
|
||||
Reference in New Issue
Block a user