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 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",
|
||||
|
||||
Reference in new issue
Block a user