Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

test(graphql-cache): give the mail projection tests time to import on busy runners (#9842)

teo857120a44c11
diff --git a/apps/web/src/lib/graphql-cache/worker/browser-test/mail-projection-harness.test.ts b/apps/web/src/lib/graphql-cache/worker/browser-test/mail-projection-harness.test.ts
index 12c58b82ff..d2b5822875 100644
--- a/apps/web/src/lib/graphql-cache/worker/browser-test/mail-projection-harness.test.ts
+++ b/apps/web/src/lib/graphql-cache/worker/browser-test/mail-projection-harness.test.ts
@@ -60,5 +60,8 @@ it.each(['entityFilter', 'readRecordsByKeys'] as const)(
await new Promise((resolve) => setTimeout(resolve, 0));
expect(result.getAttribute('data-status')).toBe('ready');
expect(result.textContent).toBe('0 cached emails shown');
- }
+ },
+ // Each test re-imports the harness after resetModules, which can pass 5 s on a
+ // busy runner. A late import then runs into the next test and fails it too.
+ 30_000
);