Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

test(chat): isolate final correction mocks between cases

xda5cde3b32bbd
diff --git a/apps/desktop/src/main/__tests__/messagePersistBroadcaster.test.ts b/apps/desktop/src/main/__tests__/messagePersistBroadcaster.test.ts
index b0f595161c..a9d9573e32 100644
--- a/apps/desktop/src/main/__tests__/messagePersistBroadcaster.test.ts
+++ b/apps/desktop/src/main/__tests__/messagePersistBroadcaster.test.ts
@@ -207,6 +207,7 @@ describe('Codex done completion boundary', () => {
beforeEach(() => {
vi.clearAllMocks();
+ vi.mocked(updateMessageContent).mockReset().mockResolvedValue({} as never);
vi.mocked(findVisibleToolUseMessageByAliases).mockResolvedValue(null);
vi.mocked(getSubagentRunDetail).mockResolvedValue(null);
ownerScopeState.current = true;