Fix terminal browser test mock
This commit is contained in:
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,
|
||||
}));
|
||||
|
||||
|
||||
Reference in new issue
Block a user