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", () => {