test(web): allow cold timeline imports on CI (#16608)

This commit is contained in:
Michael Johnston authored and GitHub committed 2026-10-10 00:01:40 -03:00
1 parent 88edfacf5d
commit 467fea963f
1 file changed
+2 -1
@@ -260,10 +260,11 @@ function stubDomGlobals() {
}
beforeEach(stubDomGlobals);
// Cold transformation of the full chat dependency graph needs extra time on slower CI workers.
beforeAll(async () => {
Object.defineProperty(window, "matchMedia", { value: matchMedia, configurable: true });
({ MessagesTimeline, resolvePreviewAnnotationImage } = await import("./MessagesTimeline"));
}, 30_000);
}, 120_000);
const ACTIVE_THREAD_ENVIRONMENT_ID = EnvironmentId.make("environment-local");
const MESSAGE_CREATED_AT = "2026-03-17T19:12:28.000Z";