From b897cff5a87094224a4a9dee098f51dd1265edec Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Mon, 24 May 2021 09:50:34 +0300 Subject: [PATCH] fix tests Signed-off-by: Jari Kolehmainen --- src/main/catalog-sources/__test__/kubeconfig-sync.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/catalog-sources/__test__/kubeconfig-sync.test.ts b/src/main/catalog-sources/__test__/kubeconfig-sync.test.ts index 6f89e12c46..7fcd3c1db6 100644 --- a/src/main/catalog-sources/__test__/kubeconfig-sync.test.ts +++ b/src/main/catalog-sources/__test__/kubeconfig-sync.test.ts @@ -28,6 +28,12 @@ import mockFs from "mock-fs"; import fs from "fs"; import { ClusterStore } from "../../../common/cluster-store"; +jest.mock("electron", () => ({ + app: { + getPath: () => "/foo", + }, +})); + describe("kubeconfig-sync.source tests", () => { beforeEach(() => { mockFs();