Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeAll(() => {
app.isReady.mockReturnValue(true);
menuberMock.tray.listeners.mockReturnValue([() => null]);
menubar.mockClear();
menuberMock.showWindow.mockClear();
storage.get.mockReset();
storage.get.mockImplementation(() => {
});
require("../../src/main/main");
});