Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ci): mock native canvas listener in Brain tests

Louis Beaumont322bdcb4444c
diff --git a/apps/screenpipe-app-tauri/components/settings/__tests__/brain-overview.test.tsx b/apps/screenpipe-app-tauri/components/settings/__tests__/brain-overview.test.tsx
index 0f0982abe..43c56459b 100644
--- a/apps/screenpipe-app-tauri/components/settings/__tests__/brain-overview.test.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/__tests__/brain-overview.test.tsx
@@ -48,6 +48,10 @@ vi.mock("posthog-js", () => ({
default: { capture: mocks.capture },
}));
+vi.mock("@tauri-apps/api/event", () => ({
+ listen: vi.fn(async () => () => {}),
+}));
+
vi.mock("@/lib/utils/tauri", () => ({
commands: {
listBrainViews: mocks.listBrainViews,