1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix import paths, part 2

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

View File

@ -1,3 +1,3 @@
import { helmCli } from "../main/helm-cli" import { helmCli } from "../src/main/helm-cli"
helmCli.ensureBinary() helmCli.ensureBinary()

View File

@ -1,5 +1,7 @@
import mockFs from "mock-fs" import mockFs from "mock-fs"
import yaml from "js-yaml" import yaml from "js-yaml"
import { ClusterStore } from "../../../src/common/cluster-store";
import { Cluster } from "../../../src/main/cluster";
jest.mock("electron", () => { jest.mock("electron", () => {
return { 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 needs to be called before fs-mocks, see https://github.com/tschaub/mock-fs/issues/234
console.log(""); console.log("");
import { ClusterStore } from "../../../common/cluster-store"
import { Cluster } from "../../../main/cluster"
describe("for an empty config", () => { describe("for an empty config", () => {
beforeEach(() => { beforeEach(() => {
ClusterStore.resetInstance() ClusterStore.resetInstance()

View File

@ -1,5 +1,5 @@
import mockFs from "mock-fs" import mockFs from "mock-fs"
import { userStore, UserStore } from "../../../common/user-store" import { userStore, UserStore } from "../../../src/common/user-store"
jest.mock("electron", () => { jest.mock("electron", () => {
return { return {

View File

@ -1,4 +1,4 @@
import { bundledKubectl, Kubectl } from "../../../main/kubectl"; import { bundledKubectl, Kubectl } from "../../../src/main/kubectl";
jest.mock("electron") jest.mock("electron")
jest.mock("../../../common/user-store") jest.mock("../../../common/user-store")

View File

@ -15,7 +15,7 @@ class MockServer extends EventEmitter {
const net = require("net") const net = require("net")
jest.mock("net") jest.mock("net")
import * as port from "../../../main/port" import * as port from "../../../src/main/port"
describe("getFreePort", () => { describe("getFreePort", () => {
beforeEach(() => { beforeEach(() => {