test(core): use lightweight clear in cron, claude runner, and telegram delivery specs
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
@@ -38,7 +38,7 @@ describe("cron tool", () => {
|
||||
}
|
||||
|
||||
beforeEach(() => {
|
||||
callGatewayMock.mockReset();
|
||||
callGatewayMock.mockClear();
|
||||
callGatewayMock.mockResolvedValue({ ok: true });
|
||||
});
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ function createSendMessageHarness(messageId = 4) {
|
||||
|
||||
describe("deliverReplies", () => {
|
||||
beforeEach(() => {
|
||||
loadWebMedia.mockReset();
|
||||
loadWebMedia.mockClear();
|
||||
});
|
||||
|
||||
it("skips audioAsVoice-only payloads without logging an error", async () => {
|
||||
|
||||
Reference in New Issue
Block a user