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:
parent
c84b108178
commit
54b7edfb51
@ -1,3 +1,3 @@
|
|||||||
import { helmCli } from "../main/helm-cli"
|
import { helmCli } from "../src/main/helm-cli"
|
||||||
|
|
||||||
helmCli.ensureBinary()
|
helmCli.ensureBinary()
|
||||||
|
|||||||
@ -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()
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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")
|
||||||
|
|||||||
@ -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(() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user