Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

test(appshot): type the editor fetch fake as callable

rubenluetke10-beepf3531fc5c896
diff --git a/jarvis/ui/web/frontend/src/views/AppshotsView.test.tsx b/jarvis/ui/web/frontend/src/views/AppshotsView.test.tsx
index d825e0d95d..2b6b8af86d 100644
--- a/jarvis/ui/web/frontend/src/views/AppshotsView.test.tsx
+++ b/jarvis/ui/web/frontend/src/views/AppshotsView.test.tsx
@@ -265,7 +265,7 @@ describe("AppshotsView editor", () => {
});
it("edits in its own window where the desktop shell opens one", async () => {
- const fetchMock = fetch as unknown as ReturnType<typeof vi.fn>;
+ const fetchMock = fetch as unknown as ReturnType<typeof vi.fn<(url: string, init?: RequestInit) => Promise<Response>>>;
const base = fetchMock.getMockImplementation()!;
fetchMock.mockImplementation(async (url: string, init?: RequestInit) =>
url === "/api/appshot/open-editor" ? json({ window: true }) : base(url, init),