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: harden cross-platform CI checks

DavidShen18c70dc93c8c
diff --git a/apps/desktop/src/main/__tests__/windowsIconAssets.test.ts b/apps/desktop/src/main/__tests__/windowsIconAssets.test.ts
index 7b47aaee06..deabb1a942 100644
--- a/apps/desktop/src/main/__tests__/windowsIconAssets.test.ts
+++ b/apps/desktop/src/main/__tests__/windowsIconAssets.test.ts
@@ -3,7 +3,9 @@ import * as fs from 'node:fs';
import * as os from 'node:os';
import * as path from 'node:path';
import sharp from 'sharp';
-import { describe, expect, it } from 'vitest';
+import { describe, expect, it, vi } from 'vitest';
+
+vi.setConfig({ testTimeout: process.platform === 'win32' ? 60_000 : 30_000 });
const desktopRoot = path.resolve(__dirname, '../../..');
const resourcesDir = path.join(desktopRoot, 'resources');
diff --git a/apps/mobile/src/__tests__/chatQuoteCrossDevice.test.ts b/apps/mobile/src/__tests__/chatQuoteCrossDevice.test.ts
index 24764396a4..958cbd338e 100644
--- a/apps/mobile/src/__tests__/chatQuoteCrossDevice.test.ts
+++ b/apps/mobile/src/__tests__/chatQuoteCrossDevice.test.ts
@@ -19,7 +19,10 @@ describe('mobile cross-device quote wiring', () => {
});
it('propagates quote metadata through direct and attachment-outbox sends', () => {
- const source = readFileSync(resolve(process.cwd(), 'app/sessions/[sessionId].tsx'), 'utf8');
+ const source = readFileSync(resolve(process.cwd(), 'app/sessions/[sessionId].tsx'), 'utf8').replace(
+ /\r\n/g,
+ '\n',
+ );
expect(source).toContain('quotesEncoded: quotesEncodedAtSend');
expect(source).toContain('pastedTextRanges: pastedTextRangesAtSend');