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(agent-island): 隔离伙伴持久化测试的原生活动依赖

Dash886fffa68916
diff --git a/apps/desktop/src/main/localDb/ipc/__tests__/botCanonicalSession.test.ts b/apps/desktop/src/main/localDb/ipc/__tests__/botCanonicalSession.test.ts
index c4bf8f78e5..770659b224 100644
--- a/apps/desktop/src/main/localDb/ipc/__tests__/botCanonicalSession.test.ts
+++ b/apps/desktop/src/main/localDb/ipc/__tests__/botCanonicalSession.test.ts
@@ -117,6 +117,8 @@ vi.mock('node:fs/promises', async importOriginal => {
});
// Legacy byte migration has its own real-storage suite.
vi.mock('../legacyTeammateAvatar.js', () => ({ migrateLegacyTeammateAvatar: async () => false }));
+// Native activity UI is outside this database/runtime integration test.
+vi.mock('../../../agent-island/service.js', () => ({ getAgentIslandService: () => null }));
vi.mock('../../../maker-ipc/botDefaultProvisioning.js', () => ({
provisionDefaultBot: vi.fn(), markDefaultBotOffered: vi.fn(),
withDefaultBotProvisioningLock: async (_root: string, assertOwner: () => void, action: () => Promise<unknown>) => {