project restructuring and initial refactoring

This commit is contained in:
Roman committed 2020-06-09 15:14:40 +03:00
1 parent 5af12bdbbd
commit aa0eca2dc4
807 files changed
+11848 -22947

No files matched your search

+4 -4
View File
@@ -1,5 +1,5 @@
import * as mockFs from "mock-fs"
import * as yaml from "js-yaml"
import mockFs from "mock-fs"
import yaml from "js-yaml"
jest.mock("electron", () => {
return {
@@ -14,8 +14,8 @@ 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 "../../../src/common/cluster-store"
import { Cluster } from "../../../src/main/cluster"
import { ClusterStore } from "../../../common/cluster-store"
import { Cluster } from "../../../main/cluster"
describe("for an empty config", () => {
beforeEach(() => {
+2 -4
View File
@@ -1,5 +1,5 @@
import * as mockFs from "mock-fs"
import * as yaml from "js-yaml"
import mockFs from "mock-fs"
import { userStore, UserStore } from "../../../common/user-store"
jest.mock("electron", () => {
return {
@@ -14,8 +14,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 { userStore, User, UserPreferences, UserStore } from "../../../src/common/user-store"
describe("for an empty config", () => {
beforeEach(() => {
UserStore.resetInstance()
+2 -2
View File
@@ -1,8 +1,8 @@
import { bundledKubectl, Kubectl } from "../../../main/kubectl";
jest.mock("electron")
jest.mock("../../../src/common/user-store")
import { Kubectl, bundledKubectl } from "../../../src/main/kubectl"
describe("kubectlVersion", () => {
it("returns bundled version if exactly same version used", async () => {
+1 -1
View File
@@ -15,7 +15,7 @@ class MockServer extends EventEmitter {
const net = require("net")
jest.mock("net")
import * as port from "../../../src/main/port"
import * as port from "../../../main/port"
describe("getFreePort", () => {
beforeEach(() => {