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:
1 parent
8569e3b772
commit
a546e4eb98
2 files changed
+4
-5
No files matched your search
+2
-5
@@ -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",
|
||||||
|
|||||||
Vendored
+2
@@ -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"
|
||||||
Reference in new issue
Block a user