mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
project restructuring and initial refactoring
This commit is contained in:
1 parent
5af12bdbbd
commit
aa0eca2dc4
807 files changed
+11848
-22947
No files matched your search
@@ -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(() => {
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
Reference in new issue
Block a user