test(core): dedupe command gating and trim announce reset overhead

This commit is contained in:
Peter Steinberger
2026-02-22 08:54:06 +00:00
parent a4c107ee11
commit d625f888a9
2 changed files with 88 additions and 54 deletions

View File

@@ -143,10 +143,10 @@ vi.mock("../config/config.js", async (importOriginal) => {
describe("subagent announce formatting", () => {
beforeEach(() => {
agentSpy
.mockReset()
.mockClear()
.mockImplementation(async (_req: AgentCallRequest) => ({ runId: "run-main", status: "ok" }));
sendSpy
.mockReset()
.mockClear()
.mockImplementation(async (_req: AgentCallRequest) => ({ runId: "send-main", status: "ok" }));
sessionsDeleteSpy.mockClear().mockImplementation((_req: AgentCallRequest) => undefined);
embeddedRunMock.isEmbeddedPiRunActive.mockReset().mockReturnValue(false);