| author | |
| committer | |
| log | f452d63fefdf00958e86b8d1f920aa25eb03f484 |
| tree | 836702cd43ccd0ddaefa61d167d3e1e0ae610152 |
| parent | 18a49abcec35c65547416c2985d4bb6383d78759 |
1 files changed, 7 insertions(+), 0 deletions(-)
apps/web/src/components/ThreadTerminalDrawer.browser.tsx+7| ... | ... | @@ -119,6 +119,13 @@ vi.mock("@xterm/xterm", () => ({ |
| 119 | 119 | })); |
| 120 | 120 | |
| 121 | 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 | }, | |
| 122 | 129 | readEnvironmentApi: readEnvironmentApiMock, |
| 123 | 130 | })); |
| 124 | 131 |