diff --git a/src/extensions/registries/__tests__/page-registry.test.ts b/src/extensions/registries/__tests__/page-registry.test.ts index 177f5227e9..b99c19ad20 100644 --- a/src/extensions/registries/__tests__/page-registry.test.ts +++ b/src/extensions/registries/__tests__/page-registry.test.ts @@ -19,7 +19,7 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -import { getExtensionPageUrl, GlobalPageRegistry, PageParams } from "../page-registry"; +import { ClusterPageRegistry, getExtensionPageUrl, GlobalPageRegistry, PageParams } from "../page-registry"; import { LensExtension } from "../../lens-extension"; import React from "react"; import { Console } from "console"; @@ -42,6 +42,7 @@ describe("getPageUrl", () => { isBundled: false, isEnabled: true }); + ClusterPageRegistry.createInstance(); GlobalPageRegistry.createInstance().add({ id: "page-with-params", components: { @@ -55,6 +56,7 @@ describe("getPageUrl", () => { }); afterEach(() => { + ClusterPageRegistry.resetInstance(); GlobalPageRegistry.resetInstance(); }); @@ -106,6 +108,7 @@ describe("globalPageRegistry", () => { isBundled: false, isEnabled: true }); + ClusterPageRegistry.createInstance(); GlobalPageRegistry.createInstance().add([ { id: "test-page", @@ -128,6 +131,7 @@ describe("globalPageRegistry", () => { }); afterEach(() => { + ClusterPageRegistry.resetInstance(); GlobalPageRegistry.resetInstance(); }); diff --git a/src/renderer/components/cluster-manager/bottom-bar.test.tsx b/src/renderer/components/cluster-manager/bottom-bar.test.tsx index 73974de604..bf6c11245e 100644 --- a/src/renderer/components/cluster-manager/bottom-bar.test.tsx +++ b/src/renderer/components/cluster-manager/bottom-bar.test.tsx @@ -30,7 +30,6 @@ jest.mock("electron", () => ({ })); import { BottomBar } from "./bottom-bar"; -jest.mock("../../../extensions/registries"); import { StatusBarRegistry } from "../../../extensions/registries"; describe("", () => {