From 06cfc3e96ba05a0734c1f3923ba3ab6cb2c41d8d Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 21 Apr 2022 14:54:01 -0400 Subject: [PATCH] fix navigation-to-proxy-preferences.test.ts - Fix other type errors too Signed-off-by: Sebastian Malton --- ...-characters-in-page-registrations.test.tsx | 3 ++- .../navigate-to-extension-page.test.tsx | 3 ++- ...vigation-to-proxy-preferences.test.ts.snap | 27 ++++++++----------- src/common/utils/iter.ts | 4 +++ .../components/+custom-resources/crd-list.tsx | 1 + .../+helm-releases/dialog/dialog.tsx | 1 + .../components/+preferences/application.tsx | 4 +++ .../components/+preferences/editor.tsx | 2 ++ .../+preferences/kubectl-binaries.tsx | 1 + .../components/+preferences/terminal.tsx | 1 + .../cluster-manager/cluster-manager.tsx | 3 ++- src/renderer/components/select/select.tsx | 2 +- src/renderer/utils/cssNames.ts | 16 ++++++----- 13 files changed, 41 insertions(+), 27 deletions(-) diff --git a/src/behaviours/extension-special-characters-in-page-registrations.test.tsx b/src/behaviours/extension-special-characters-in-page-registrations.test.tsx index 3e84479f69..e598277f30 100644 --- a/src/behaviours/extension-special-characters-in-page-registrations.test.tsx +++ b/src/behaviours/extension-special-characters-in-page-registrations.test.tsx @@ -10,6 +10,7 @@ import currentPathInjectable from "../renderer/routes/current-path.injectable"; import type { LensRendererExtension } from "../extensions/lens-renderer-extension"; import type { ApplicationBuilder } from "../renderer/components/test-utils/get-application-builder"; import { getApplicationBuilder } from "../renderer/components/test-utils/get-application-builder"; +import type { SetRequired } from "type-fest"; describe("extension special characters in page registrations", () => { let applicationBuilder: ApplicationBuilder; @@ -49,7 +50,7 @@ describe("extension special characters in page registrations", () => { }); }); -const extensionWithPagesHavingSpecialCharacters: Partial = { +const extensionWithPagesHavingSpecialCharacters: SetRequired, "id"> = { id: "@some-extension-id/", globalPages: [ diff --git a/src/behaviours/navigate-to-extension-page.test.tsx b/src/behaviours/navigate-to-extension-page.test.tsx index 915d3bab2b..c0985732ab 100644 --- a/src/behaviours/navigate-to-extension-page.test.tsx +++ b/src/behaviours/navigate-to-extension-page.test.tsx @@ -13,6 +13,7 @@ import currentPathInjectable from "../renderer/routes/current-path.injectable"; import type { IComputedValue } from "mobx"; import type { LensRendererExtension } from "../extensions/lens-renderer-extension"; import { getApplicationBuilder } from "../renderer/components/test-utils/get-application-builder"; +import type { SetRequired } from "type-fest"; describe("navigate to extension page", () => { let rendered: RenderResult; @@ -125,7 +126,7 @@ describe("navigate to extension page", () => { }); }); -const extensionWithPagesHavingParameters: Partial = { +const extensionWithPagesHavingParameters: SetRequired, "id"> = { id: "some-extension-id", globalPages: [ diff --git a/src/behaviours/preferences/__snapshots__/navigation-to-proxy-preferences.test.ts.snap b/src/behaviours/preferences/__snapshots__/navigation-to-proxy-preferences.test.ts.snap index ec521a3ad5..6e16245cf2 100644 --- a/src/behaviours/preferences/__snapshots__/navigation-to-proxy-preferences.test.ts.snap +++ b/src/behaviours/preferences/__snapshots__/navigation-to-proxy-preferences.test.ts.snap @@ -105,7 +105,7 @@ exports[`preferences - navigation to proxy preferences given in preferences, whe class="SubTitle" > Theme - +
Extension Install Registry - +
This setting is to change the registry URL for installing extensions by name. - - If you are unable to access the default registry ( - https://registry.npmjs.org - ) - - you can change it in your + If you are unable to access the default registry (https://registry.npmjs.org) you can change it in your .npmrc -  file or in the input below. + file or in the input below.

Start-up - +
Locale Timezone - +
HTTP Proxy - +
Certificate Trust - +