test(core): use lightweight clear in cron, claude runner, and telegram delivery specs

This commit is contained in:
Peter Steinberger
2026-02-22 08:35:32 +00:00
parent 902544cf2d
commit 2d2e1c2403
3 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ async function waitForCalls(mockFn: { mock: { calls: unknown[][] } }, count: num
describe("runClaudeCliAgent", () => {
beforeEach(() => {
mocks.spawn.mockReset();
mocks.spawn.mockClear();
});
it("starts a new session with --session-id when none is provided", async () => {

View File

@@ -38,7 +38,7 @@ describe("cron tool", () => {
}
beforeEach(() => {
callGatewayMock.mockReset();
callGatewayMock.mockClear();
callGatewayMock.mockResolvedValue({ ok: true });
});