test(core): reduce mock reset overhead across unit and e2e specs

This commit is contained in:
Peter Steinberger
2026-02-22 08:22:52 +00:00
parent d06ad6bc55
commit 8a0a28763e
13 changed files with 13 additions and 13 deletions

View File

@@ -9,7 +9,7 @@ import { readLatestAssistantReply } from "./agent-step.js";
describe("readLatestAssistantReply", () => {
beforeEach(() => {
callGatewayMock.mockReset();
callGatewayMock.mockClear();
});
it("returns the most recent assistant message when compaction markers trail history", async () => {

View File

@@ -12,7 +12,7 @@ import { createCronTool } from "./cron-tool.js";
describe("cron tool flat-params", () => {
beforeEach(() => {
callGatewayToolMock.mockReset();
callGatewayToolMock.mockClear();
callGatewayToolMock.mockResolvedValue({ ok: true });
});