fix import paths, part 2

This commit is contained in:
Roman committed 2020-06-10 12:06:32 +03:00
1 parent c84b108178
commit 54b7edfb51
5 files changed
+6 -7

No files matched your search

+2 -3
View File
@@ -1,5 +1,7 @@
import mockFs from "mock-fs"
import yaml from "js-yaml"
import { ClusterStore } from "../../../src/common/cluster-store";
import { Cluster } from "../../../src/main/cluster";
jest.mock("electron", () => {
return {
@@ -14,9 +16,6 @@ jest.mock("electron", () => {
// Console.log needs to be called before fs-mocks, see https://github.com/tschaub/mock-fs/issues/234
console.log("");
import { ClusterStore } from "../../../common/cluster-store"
import { Cluster } from "../../../main/cluster"
describe("for an empty config", () => {
beforeEach(() => {
ClusterStore.resetInstance()
+1 -1
View File
@@ -1,5 +1,5 @@
import mockFs from "mock-fs"
import { userStore, UserStore } from "../../../common/user-store"
import { userStore, UserStore } from "../../../src/common/user-store"
jest.mock("electron", () => {
return {
+1 -1
View File
@@ -1,4 +1,4 @@
import { bundledKubectl, Kubectl } from "../../../main/kubectl";
import { bundledKubectl, Kubectl } from "../../../src/main/kubectl";
jest.mock("electron")
jest.mock("../../../common/user-store")
+1 -1
View File
@@ -15,7 +15,7 @@ class MockServer extends EventEmitter {
const net = require("net")
jest.mock("net")
import * as port from "../../../main/port"
import * as port from "../../../src/main/port"
describe("getFreePort", () => {
beforeEach(() => {