diff --git a/src/renderer/getDiForUnitTesting.tsx b/src/renderer/getDiForUnitTesting.tsx index d4765706a7..4a6e1c8aa9 100644 --- a/src/renderer/getDiForUnitTesting.tsx +++ b/src/renderer/getDiForUnitTesting.tsx @@ -43,6 +43,7 @@ import type { IpcRenderer } from "electron"; import setupOnApiErrorListenersInjectable from "./api/setup-on-api-errors.injectable"; import { observable } from "mobx"; import defaultShellInjectable from "./components/+preferences/default-shell.injectable"; +import appVersionInjectable from "../common/get-configuration-file-model/app-version/app-version.injectable"; export const getDiForUnitTesting = (opts: GetDiForUnitTestingOptions = {}) => { const { @@ -75,6 +76,8 @@ export const getDiForUnitTesting = (opts: GetDiForUnitTestingOptions = {}) => { di.override(getAbsolutePathInjectable, () => getAbsolutePathFake); di.override(joinPathsInjectable, () => joinPathsFake); + di.override(appVersionInjectable, () => "1.0.0"); + di.override(historyInjectable, () => createMemoryHistory()); di.override(lensResourcesDirInjectable, () => "/irrelevant");