Fix terminal browser test mock

This commit is contained in:
Julius Marminge authored and Theo Browne committed 2026-06-13 22:18:37 -07:00
1 parent 18a49abcec
commit f452d63fef
1 file changed
+7
@@ -119,6 +119,13 @@ vi.mock("@xterm/xterm", () => ({
}));
vi.mock("~/environmentApi", () => ({
ensureEnvironmentApi: (environmentId: string) => {
const api = readEnvironmentApiMock(environmentId);
if (!api) {
throw new Error(`Environment API not found for ${environmentId}`);
}
return api;
},
readEnvironmentApi: readEnvironmentApiMock,
}));