mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: mock connection store in lazy-with-retry tests to prevent CI timeout
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user