diff --git a/src/renderer/components/dock/__test__/dock-store.test.ts b/src/renderer/components/dock/__test__/dock-store.test.ts index 89d6f059f9..98f8d2787f 100644 --- a/src/renderer/components/dock/__test__/dock-store.test.ts +++ b/src/renderer/components/dock/__test__/dock-store.test.ts @@ -4,6 +4,7 @@ */ import hostedClusterIdInjectable from "../../../../common/cluster-store/hosted-cluster-id.injectable"; +import ipcRendererInjectable from "../../../app-paths/get-value-from-registered-channel/ipc-renderer/ipc-renderer.injectable"; import { getDiForUnitTesting } from "../../../getDiForUnitTesting"; import type { DockStore, DockTab } from "../dock/store"; import { TabKind } from "../dock/store"; @@ -24,6 +25,10 @@ describe("DockStore", () => { const di = getDiForUnitTesting({ doGeneralOverrides: true }); di.override(hostedClusterIdInjectable, () => "some-cluster-id"); + di.override(ipcRendererInjectable, () => ({ + on: jest.fn(), + invoke: jest.fn(), // TODO: replace with proper mocking via the IPC bridge + } as never)); await di.runSetups();