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

Fixing Welcome tests

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-08-30 11:10:18 +03:00
parent 1bcadafac9
commit cf541af696

View File

@ -26,6 +26,15 @@ import { Welcome } from "../welcome";
import { TopBarRegistry, WelcomeMenuRegistry, WelcomeBannerRegistry } from "../../../../extensions/registries";
import { defaultWidth } from "../welcome";
jest.mock(
"electron",
() => ({
ipcRenderer: {
on: jest.fn(),
},
})
);
describe("<Welcome/>", () => {
beforeEach(() => {
TopBarRegistry.createInstance();