mirror of
https://github.com/lensapp/lens.git
synced 2024-10-26 09:47:18 +03:00
chore: include types with void operator for coverage
Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
parent
34ca6509b8
commit
7274cdde50
@ -26,7 +26,7 @@ import { getExtensionRoutePath } from "../renderer/routes/for-extension";
|
||||
import type { KubeObjectHandlerRegistration } from "../renderer/kube-object/handler";
|
||||
import type { AppPreferenceTabRegistration } from "../features/preferences/renderer/compliance-for-legacy-extension-api/app-preference-tab-registration";
|
||||
import type { KubeObjectDetailRegistration } from "../renderer/components/kube-object-details/kube-object-detail-registration";
|
||||
import type { ClusterFrameChildComponent } from "../renderer/frames/cluster-frame/cluster-frame-child-component-injection-token";
|
||||
import type { ClusterFrameChildComponent } from "@k8slens/react-application";
|
||||
import type { EntitySettingRegistration } from "../renderer/components/entity-settings/extension-registrator.injectable";
|
||||
import type { CatalogEntityDetailRegistration } from "../renderer/components/catalog/entity-details/token";
|
||||
import type { PageRegistration } from "../renderer/routes/page-registration";
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import { rootFrameChildComponentInjectionToken } from "../../../../../../renderer/frames/root-frame/root-frame-child-component-injection-token";
|
||||
import { rootFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
import { ForceUpdateModal } from "./force-update-modal";
|
||||
import timeSinceUpdateWasDownloadedInjectable from "./time-since-update-was-downloaded.injectable";
|
||||
import updateDownloadedDateTimeInjectable from "../../../../common/update-downloaded-date-time.injectable";
|
||||
|
@ -11,7 +11,7 @@ import React from "react";
|
||||
import type { CatalogEntity } from "../../../api/catalog-entity";
|
||||
import type { CatalogEntityRegistry } from "../../../api/catalog/entity/registry";
|
||||
import catalogEntityRegistryInjectable from "../../../api/catalog/entity/registry.injectable";
|
||||
import { rootFrameChildComponentInjectionToken } from "../../../frames/root-frame/root-frame-child-component-injection-token";
|
||||
import { rootFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
import type { HideEntityDetails } from "./hide.injectable";
|
||||
import hideEntityDetailsInjectable from "./hide.injectable";
|
||||
import selectedCatalogEntityInjectable from "./selected-entity.injectable";
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
import React from "react";
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { rootFrameChildComponentInjectionToken } from "../../frames/root-frame/root-frame-child-component-injection-token";
|
||||
import { rootFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
import { ClusterManager } from "./cluster-manager";
|
||||
import { computed } from "mobx";
|
||||
import { ErrorBoundary } from "@k8slens/error-boundary";
|
||||
|
@ -5,7 +5,7 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import { CommandContainer } from "./command-container";
|
||||
import { clusterFrameChildComponentInjectionToken } from "../../frames/cluster-frame/cluster-frame-child-component-injection-token";
|
||||
import { clusterFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
|
||||
const commandContainerClusterFrameChildComponentInjectable = getInjectable({
|
||||
id: "command-container-cluster-frame-child-component",
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { rootFrameChildComponentInjectionToken } from "../../frames/root-frame/root-frame-child-component-injection-token";
|
||||
import { rootFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
import { computed } from "mobx";
|
||||
import { CommandContainer } from "./command-container";
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import { ConfirmDialog } from "./confirm-dialog";
|
||||
import { clusterFrameChildComponentInjectionToken } from "../../frames/cluster-frame/cluster-frame-child-component-injection-token";
|
||||
import { clusterFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
|
||||
const confirmDialogClusterFrameChildComponentInjectable = getInjectable({
|
||||
id: "confirm-dialog-cluster-frame-child-component",
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { rootFrameChildComponentInjectionToken } from "../../frames/root-frame/root-frame-child-component-injection-token";
|
||||
import { rootFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
import { computed } from "mobx";
|
||||
import { ConfirmDialog } from "./confirm-dialog";
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import { DeleteClusterDialog } from "./view";
|
||||
import { clusterFrameChildComponentInjectionToken } from "../../frames/cluster-frame/cluster-frame-child-component-injection-token";
|
||||
import { clusterFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
|
||||
const deleteClusterDialogClusterFrameChildComponentInjectable = getInjectable({
|
||||
id: "delete-cluster-dialog-cluster-frame-child-component",
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import { clusterFrameChildComponentInjectionToken } from "../../../frames/cluster-frame/cluster-frame-child-component-injection-token";
|
||||
import { clusterFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
import { ReleaseDetails } from "./release-details";
|
||||
import targetHelmReleaseInjectable from "./target-helm-release.injectable";
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import { KubeObjectDetails } from "./kube-object-details";
|
||||
import { clusterFrameChildComponentInjectionToken } from "../../frames/cluster-frame/cluster-frame-child-component-injection-token";
|
||||
import { clusterFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
|
||||
const kubeObjectDetailsClusterFrameChildComponentInjectable = getInjectable({
|
||||
id: "kube-object-details-cluster-frame-child-component",
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import { clusterFrameChildComponentInjectionToken } from "../../frames/cluster-frame/cluster-frame-child-component-injection-token";
|
||||
import { clusterFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
import { KubeConfigDialog } from "./kubeconfig-dialog";
|
||||
|
||||
const kubeconfigDialogClusterFrameChildComponentInjectable = getInjectable({
|
||||
|
@ -5,7 +5,7 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import { Notifications } from "./notifications";
|
||||
import { clusterFrameChildComponentInjectionToken } from "../../frames/cluster-frame/cluster-frame-child-component-injection-token";
|
||||
import { clusterFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
|
||||
const notificationsClusterFrameChildComponentInjectable = getInjectable({
|
||||
id: "notifications-cluster-frame-child-component",
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { rootFrameChildComponentInjectionToken } from "../../frames/root-frame/root-frame-child-component-injection-token";
|
||||
import { rootFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
import { computed } from "mobx";
|
||||
import { Notifications } from "./notifications";
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import { CronJobTriggerDialog } from "./trigger-dialog/view";
|
||||
import { clusterFrameChildComponentInjectionToken } from "../../frames/cluster-frame/cluster-frame-child-component-injection-token";
|
||||
import { clusterFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
|
||||
const cronJobTriggerDialogClusterFrameChildComponentInjectable = getInjectable({
|
||||
id: "cron-job-trigger-dialog-cluster-frame-child-component",
|
||||
|
@ -5,7 +5,7 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import { DeploymentScaleDialog } from "./dialog";
|
||||
import { clusterFrameChildComponentInjectionToken } from "../../../frames/cluster-frame/cluster-frame-child-component-injection-token";
|
||||
import { clusterFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
|
||||
const deploymentScaleDialogClusterFrameChildComponentInjectable = getInjectable({
|
||||
id: "deployment-scale-dialog-cluster-frame-child-component",
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import { clusterFrameChildComponentInjectionToken } from "../../../frames/cluster-frame/cluster-frame-child-component-injection-token";
|
||||
import { clusterFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
import { ReplicaSetScaleDialog } from "./dialog";
|
||||
|
||||
const replicasetScaleDialogClusterFrameChildComponentInjectable = getInjectable({
|
||||
|
@ -5,7 +5,7 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import { StatefulSetScaleDialog } from "./dialog";
|
||||
import { clusterFrameChildComponentInjectionToken } from "../../../frames/cluster-frame/cluster-frame-child-component-injection-token";
|
||||
import { clusterFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
|
||||
const statefulsetScaleDialogClusterFrameChildComponentInjectable = getInjectable({
|
||||
id: "statefulset-scale-dialog-cluster-frame-child-component",
|
||||
|
@ -8,7 +8,7 @@ import { map } from "lodash/fp";
|
||||
import { extensionRegistratorInjectionToken } from "../../../extensions/extension-loader/extension-registrator-injection-token";
|
||||
import type { ExtensionRegistrator } from "../../../extensions/extension-loader/extension-registrator-injection-token";
|
||||
import type { LensRendererExtension } from "../../../extensions/lens-renderer-extension";
|
||||
import { clusterFrameChildComponentInjectionToken } from "./cluster-frame-child-component-injection-token";
|
||||
import { clusterFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
|
||||
const clusterFrameComponentRegistratorInjectable = getInjectable({
|
||||
id: "cluster-frame-component-registrator",
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
import React from "react";
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { clusterFrameChildComponentInjectionToken } from "./cluster-frame-child-component-injection-token";
|
||||
import { clusterFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
import { MainLayout } from "../../components/layout/main-layout";
|
||||
import { Sidebar } from "../../components/layout/sidebar";
|
||||
import { Dock } from "../../components/dock";
|
||||
|
@ -11,8 +11,8 @@ import namespaceStoreInjectable from "../../components/namespaces/store.injecta
|
||||
import type { SubscribeStores } from "../../kube-watch-api/kube-watch-api";
|
||||
import { disposer } from "@k8slens/utilities";
|
||||
import subscribeStoresInjectable from "../../kube-watch-api/subscribe-stores.injectable";
|
||||
import type { ClusterFrameChildComponent } from "./cluster-frame-child-component-injection-token";
|
||||
import { clusterFrameChildComponentInjectionToken } from "./cluster-frame-child-component-injection-token";
|
||||
import type { ClusterFrameChildComponent } from "@k8slens/react-application";
|
||||
import { clusterFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
import watchHistoryStateInjectable from "../../remote-helpers/watch-history-state.injectable";
|
||||
import { computedInjectManyInjectable } from "@ogre-tools/injectable-extension-for-mobx";
|
||||
import type { IComputedValue } from "mobx";
|
||||
|
@ -7,8 +7,8 @@ import React from "react";
|
||||
import { Observer } from "mobx-react";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import broadcastThatRootFrameIsRenderedInjectable from "./broadcast-that-root-frame-is-rendered.injectable";
|
||||
import type { RootFrameChildComponent } from "./root-frame-child-component-injection-token";
|
||||
import { rootFrameChildComponentInjectionToken } from "./root-frame-child-component-injection-token";
|
||||
import type { RootFrameChildComponent } from "@k8slens/react-application";
|
||||
import { rootFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
|
||||
interface Dependencies {
|
||||
broadcastThatRootFrameIsRendered: () => void;
|
||||
|
@ -5,7 +5,7 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import { PortForwardDialog } from "./port-forward-dialog";
|
||||
import { clusterFrameChildComponentInjectionToken } from "../frames/cluster-frame/cluster-frame-child-component-injection-token";
|
||||
import { clusterFrameChildComponentInjectionToken } from "@k8slens/react-application";
|
||||
|
||||
const portForwardDialogClusterFrameChildComponentInjectable = getInjectable({
|
||||
id: "port-forward-dialog-cluster-frame-child-component",
|
||||
|
@ -16,6 +16,9 @@ import {
|
||||
reactApplicationHigherOrderComponentInjectionToken,
|
||||
} from "./react-application/react-application-higher-order-component-injection-token";
|
||||
|
||||
import { clusterFrameChildComponentInjectionToken } from "./cluster-frame/cluster-frame-child-component-injection-token";
|
||||
import { rootFrameChildComponentInjectionToken } from "./root-frame/root-frame-child-component-injection-token";
|
||||
|
||||
const SomeContent = () => <div data-some-content-test>Some children</div>;
|
||||
|
||||
describe("react-application", () => {
|
||||
@ -43,6 +46,9 @@ describe("react-application", () => {
|
||||
await startApplication();
|
||||
|
||||
discover = discoverFor(() => rendered);
|
||||
|
||||
expect(clusterFrameChildComponentInjectionToken.id).toBe("cluster-frame-child-component");
|
||||
expect(rootFrameChildComponentInjectionToken.id).toBe("root-frame-child-component");
|
||||
});
|
||||
|
||||
it("renders", () => {
|
||||
|
Loading…
Reference in New Issue
Block a user