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(desktop): tolerate Electron stderr output

tiammomoc8598a80f786
diff --git a/apps/desktop/src/main/__tests__/legacyUserDataMigration.test.ts b/apps/desktop/src/main/__tests__/legacyUserDataMigration.test.ts
index 6355b30a92..9e4c0adc8d 100644
--- a/apps/desktop/src/main/__tests__/legacyUserDataMigration.test.ts
+++ b/apps/desktop/src/main/__tests__/legacyUserDataMigration.test.ts
@@ -640,8 +640,7 @@ const path = require('node:path');
expect(result.error).toBeUndefined();
expect(result.signal).toBeNull();
- expect(result.stderr).toBe('');
- expect(result.status).toBe(0);
+ expect(result.status, result.stderr).toBe(0);
const output = JSON.parse(result.stdout) as {
patchedCopyError: string | null;
copiedBytes: number;