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

chore: move test-env specific versions to own folder

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-04-05 15:05:36 -04:00
parent 5fc32c0b27
commit 3c8839151c
3 changed files with 6 additions and 8 deletions

View File

@ -58,7 +58,7 @@ jest.mock("./renderer/components/tooltip/withTooltip");
jest.mock("monaco-editor"); jest.mock("monaco-editor");
const getInjectables = (environment: "renderer" | "main", filePathGlob: string) => [ const getInjectables = (environment: "renderer" | "main", filePathGlob: string) => [
...glob.sync(`./{common,extensions,${environment}}/**/${filePathGlob}`, { ...glob.sync(`./{common,extensions,${environment},test-env}/**/${filePathGlob}`, {
cwd: __dirname, cwd: __dirname,
}), }),

View File

@ -18,9 +18,7 @@ export const applicationInformationFakeInjectable = getInjectable({
bundledKubectlVersion: "1.23.3", bundledKubectlVersion: "1.23.3",
bundledHelmVersion: "3.7.2", bundledHelmVersion: "3.7.2",
sentryDsn: "", sentryDsn: "",
contentSecurityPolicy: contentSecurityPolicy: "script-src 'unsafe-eval' 'self'; frame-src http://*.localhost:*/; img-src * data:",
"script-src 'unsafe-eval' 'self'; frame-src http://*.localhost:*/; img-src * data:",
welcomeRoute: "/welcome", welcomeRoute: "/welcome",
copyright: "some-copyright-information", copyright: "some-copyright-information",
description: "some-descriptive-text", description: "some-descriptive-text",

View File

@ -3,12 +3,12 @@
* Licensed under MIT License. See LICENSE in root directory for more information. * Licensed under MIT License. See LICENSE in root directory for more information.
*/ */
import { getInjectable } from "@ogre-tools/injectable"; import { getInjectable } from "@ogre-tools/injectable";
import { nodeEnvInjectionToken } from "./node-env-injection-token"; import { nodeEnvInjectionToken } from "../main/library";
const nodeEnvFakeInjectable = getInjectable({ const nodeEnvForTestingEnvInjectable = getInjectable({
id: "node-env-fake", id: "node-env-for-testing-env",
instantiate: () => "production", instantiate: () => "production",
injectionToken: nodeEnvInjectionToken, injectionToken: nodeEnvInjectionToken,
}); });
export default nodeEnvFakeInjectable; export default nodeEnvForTestingEnvInjectable;