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

mock @hapi/* modules

This commit is contained in:
Roman 2020-06-26 15:34:03 +03:00
parent 8569e3b772
commit a546e4eb98
2 changed files with 4 additions and 5 deletions

View File

@ -1,3 +1,5 @@
import Call from "@hapi/call"
import Subtext from "@hapi/subtext"
import http from "http"
import path from "path"
import { readFile } from "fs"
@ -11,11 +13,6 @@ import { watchRoute } from "./routes/watch"
import { portForwardRoute } from "./routes/port-forward"
import { outDir, reactAppName } from "../common/vars";
// eslint-disable-next-line @typescript-eslint/no-var-requires
const Call = require('@hapi/call');
// eslint-disable-next-line @typescript-eslint/no-var-requires
const Subtext = require('@hapi/subtext');
const mimeTypes: {[key: string]: string} = {
"html": "text/html",
"txt": "text/plain",

2
types/mocks.d.ts vendored
View File

@ -1,3 +1,5 @@
declare module "electron-promise-ipc"
declare module "mac-ca"
declare module "win-ca"
declare module "@hapi/call"
declare module "@hapi/subtext"