mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Replace jest.mock's with overriding dependencies (#6014)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
1 parent
03d2389f01
commit
81f7bd3c2c
50 files changed
+788
-605
No files matched your search
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import type { IpcMain } from "electron";
|
||||
import { getGlobalOverride } from "../../../../common/test-utils/get-global-override";
|
||||
import ipcMainInjectable from "./ipc-main.injectable";
|
||||
|
||||
export default getGlobalOverride(ipcMainInjectable, () => ({
|
||||
handle: () => {},
|
||||
on: () => {},
|
||||
off: () => {},
|
||||
}) as unknown as IpcMain);
|
||||
Reference in new issue
Block a user