test(core): trim redundant mock resets in heartbeat suites

This commit is contained in:
Peter Steinberger
2026-02-22 07:57:50 +00:00
parent ccd96873b5
commit e16e7be85b
3 changed files with 4 additions and 6 deletions

View File

@@ -760,7 +760,7 @@ describe("runHeartbeatOnce", () => {
}),
);
replySpy.mockReset();
replySpy.mockClear();
replySpy.mockResolvedValue([{ text: testCase.message }]);
const sendWhatsApp = vi
.fn<NonNullable<HeartbeatDeps["sendWhatsApp"]>>()
@@ -896,7 +896,7 @@ describe("runHeartbeatOnce", () => {
}),
);
replySpy.mockReset();
replySpy.mockClear();
replySpy.mockResolvedValue(testCase.replies);
const sendWhatsApp = vi
.fn<NonNullable<HeartbeatDeps["sendWhatsApp"]>>()