Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions apps/web/src/components/chat/WorkflowOpeningBlock.browser.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ vi.mock(import("../../state/server"), async (original) => {
serverEnvironment: { ...actual.serverEnvironment, configValueAtom: (() => noConfig) as never },
};
});
// Loading the real Shiki WASM and grammar can take seconds on a busy runner; the block only
// needs to hand its script to the markdown code block that highlights it.
vi.mock(import("../../lib/syntaxHighlighting"), async (original) => ({
...(await original()),
getSyntaxHighlighterPromise: async () =>
({
codeToHtml: (code: string) =>
Object.assign(document.createElement("pre"), { textContent: code }).outerHTML,
}) as never,
}));

const SHORT_SCRIPT =
"export const meta = { name: 'repo-check' }\nagent('Run SCRIPTONLY with Bash')";
Expand Down
Loading