mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Migrate to actual typing for di.permitSideEffects
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
1 parent
906f23214e
commit
9a5a210ed3
15 files changed
+18
-62
No files matched your search
@@ -98,10 +98,7 @@ describe("kube auth proxy tests", () => {
|
||||
|
||||
di.override(spawnInjectable, () => mockSpawn);
|
||||
|
||||
// @ts-ignore
|
||||
di.permitSideEffects(getConfigurationFileModelInjectable);
|
||||
|
||||
// @ts-ignore
|
||||
di.permitSideEffects(appVersionInjectable);
|
||||
|
||||
mockFs(mockMinikubeConfig);
|
||||
|
||||
@@ -56,10 +56,7 @@ describe("kubeconfig-sync.source tests", () => {
|
||||
ClusterStore.createInstance({ createCluster: () => null }),
|
||||
);
|
||||
|
||||
// @ts-ignore
|
||||
di.permitSideEffects(getConfigurationFileModelInjectable);
|
||||
|
||||
// @ts-ignore
|
||||
di.permitSideEffects(appVersionInjectable);
|
||||
|
||||
di.inject(clusterStoreInjectable);
|
||||
|
||||
@@ -48,10 +48,7 @@ describe("protocol router tests", () => {
|
||||
|
||||
di.override(extensionsStoreInjectable, () => ExtensionsStore.createInstance());
|
||||
|
||||
// @ts-ignore
|
||||
di.permitSideEffects(getConfigurationFileModelInjectable);
|
||||
|
||||
// @ts-ignore
|
||||
di.permitSideEffects(appVersionInjectable);
|
||||
|
||||
await di.runSetups();
|
||||
|
||||
Reference in new issue
Block a user