The best way to control Claude Code, Codex and more from any computer or phone
Fix terminal browser test mock
Julius Marminge committed
Jun 12, 2026 at 19:46 UTC
f452d63fefdf00958e86b8d1f920aa25eb03f484
1 file changed
+7
apps/web/src/components/ThreadTerminalDrawer.browser.tsx
+7
@@ -119,6 +119,13 @@ vi.mock("@xterm/xterm", () => ({
119
}));
120
121
vi.mock("~/environmentApi", () => ({
122
+ ensureEnvironmentApi: (environmentId: string) => {
123
+ const api = readEnvironmentApiMock(environmentId);
124
+ if (!api) {
125
+ throw new Error(`Environment API not found for ${environmentId}`);
126
+ }
127
+ return api;
128
+ },
129
readEnvironmentApi: readEnvironmentApiMock,
130
}));
131