Skip to content

Commit 41a5b93

Browse files
fix(web): ChatView browser test no longer times out on CI
The draft test mounts AppRoot, whose route lazily loads ChatView.tsx. Its first React Compiler transform takes 6-11s on its own, inside the test's 15s timeout, so the test failed whenever the runner was busy. Import ChatView at the top of the file so the transform runs during collection; the test now takes 1-3s. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 81899ce commit 41a5b93

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/web/src/components/ChatView.browser.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import { expect, it, vi } from "vite-plus/test";
77
import { page } from "vite-plus/test/browser";
88

99
import { AppRoot } from "~/AppRoot";
10+
// The route loads ChatView lazily, and its first transform (React Compiler over ~4k lines)
11+
// takes 6-11s; importing it here keeps that out of the test's timeout.
12+
import "~/components/ChatView";
1013
import { DraftId, useComposerDraftStore } from "~/composerDraftStore";
1114
import { __setClientSettingsForTests } from "~/hooks/useSettings";
1215
import { getRouter } from "~/router";

0 commit comments

Comments
 (0)