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:
parent
8569e3b772
commit
a546e4eb98
@ -1,3 +1,5 @@
|
|||||||
|
import Call from "@hapi/call"
|
||||||
|
import Subtext from "@hapi/subtext"
|
||||||
import http from "http"
|
import http from "http"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import { readFile } from "fs"
|
import { readFile } from "fs"
|
||||||
@ -11,11 +13,6 @@ import { watchRoute } from "./routes/watch"
|
|||||||
import { portForwardRoute } from "./routes/port-forward"
|
import { portForwardRoute } from "./routes/port-forward"
|
||||||
import { outDir, reactAppName } from "../common/vars";
|
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} = {
|
const mimeTypes: {[key: string]: string} = {
|
||||||
"html": "text/html",
|
"html": "text/html",
|
||||||
"txt": "text/plain",
|
"txt": "text/plain",
|
||||||
|
|||||||
2
types/mocks.d.ts
vendored
2
types/mocks.d.ts
vendored
@ -1,3 +1,5 @@
|
|||||||
declare module "electron-promise-ipc"
|
declare module "electron-promise-ipc"
|
||||||
declare module "mac-ca"
|
declare module "mac-ca"
|
||||||
declare module "win-ca"
|
declare module "win-ca"
|
||||||
|
declare module "@hapi/call"
|
||||||
|
declare module "@hapi/subtext"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user