From 2ec495058a8e468c39e1fd53718ea1cc61946a32 Mon Sep 17 00:00:00 2001 From: ashim-hq Date: Fri, 24 Apr 2026 15:27:12 +0800 Subject: [PATCH] fix: mock connection store in lazy-with-retry tests to prevent CI timeout --- tests/unit/web/lazy-with-retry.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/web/lazy-with-retry.test.ts b/tests/unit/web/lazy-with-retry.test.ts index 5703b65d..469542eb 100644 --- a/tests/unit/web/lazy-with-retry.test.ts +++ b/tests/unit/web/lazy-with-retry.test.ts @@ -1,6 +1,10 @@ // @vitest-environment jsdom import { describe, expect, it, vi } from "vitest"; +vi.mock("@/stores/connection-store", () => ({ + useConnectionStore: { getState: () => ({ setDisconnected: vi.fn() }) }, +})); + import { retryDynamicImport } from "@/lib/lazy-with-retry"; describe("retryDynamicImport", () => {