mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 09:21:26 +00:00
test(core): reduce mock reset overhead across unit and e2e specs
This commit is contained in:
@@ -19,7 +19,7 @@ const { clearInternalHooks, createInternalHookEvent, registerInternalHook, trigg
|
||||
|
||||
describe("boot-md startup hook integration", () => {
|
||||
beforeEach(() => {
|
||||
runBootOnce.mockReset();
|
||||
runBootOnce.mockClear();
|
||||
clearInternalHooks();
|
||||
});
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ describe("startGmailWatcherWithLogs", () => {
|
||||
};
|
||||
|
||||
beforeEach(() => {
|
||||
startGmailWatcherMock.mockReset();
|
||||
startGmailWatcherMock.mockClear();
|
||||
log.info.mockClear();
|
||||
log.warn.mockClear();
|
||||
log.error.mockClear();
|
||||
|
||||
Reference in New Issue
Block a user