The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 01:45 UTC
test(web): fix the workflow script test that times out on busy CI runners (#21699)
Co-authored-by: PR Batch Tester <agent@local.test> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
shivam committed
Oct 19, 2026 at 18:33 UTC
2532e64099a2a14e18427783a79e7ede44f626ce
1 file changed
+10
apps/web/src/components/chat/WorkflowOpeningBlock.browser.test.tsx
+10
@@ -22,6 +22,16 @@ vi.mock(import("../../state/server"), async (original) => {
22
serverEnvironment: { ...actual.serverEnvironment, configValueAtom: (() => noConfig) as never },
23
};
24
});
25
+// Loading the real Shiki WASM and grammar can take seconds on a busy runner; the block only
26
+// needs to hand its script to the markdown code block that highlights it.
27
+vi.mock(import("../../lib/syntaxHighlighting"), async (original) => ({
28
+ ...(await original()),
29
+ getSyntaxHighlighterPromise: async () =>
30
+ ({
31
+ codeToHtml: (code: string) =>
32
+ Object.assign(document.createElement("pre"), { textContent: code }).outerHTML,
33
+ }) as never,
34
+}));
35
36
const SHORT_SCRIPT =
37
"export const meta = { name: 'repo-check' }\nagent('Run SCRIPTONLY with Bash')";