mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 14:24:59 +00:00
test(infra): use lightweight clears in update startup mocks
This commit is contained in:
@@ -74,9 +74,9 @@ describe("update-startup", () => {
|
|||||||
await import("./update-startup.js"));
|
await import("./update-startup.js"));
|
||||||
loaded = true;
|
loaded = true;
|
||||||
}
|
}
|
||||||
vi.mocked(resolveOpenClawPackageRoot).mockReset();
|
vi.mocked(resolveOpenClawPackageRoot).mockClear();
|
||||||
vi.mocked(checkUpdateStatus).mockReset();
|
vi.mocked(checkUpdateStatus).mockClear();
|
||||||
vi.mocked(resolveNpmChannelTag).mockReset();
|
vi.mocked(resolveNpmChannelTag).mockClear();
|
||||||
resetUpdateAvailableStateForTest();
|
resetUpdateAvailableStateForTest();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user