diff --git a/src/main/window/attach-main-window-services.test.ts b/src/main/window/attach-main-window-services.test.ts index 8d165a807..e0ba16b9b 100644 --- a/src/main/window/attach-main-window-services.test.ts +++ b/src/main/window/attach-main-window-services.test.ts @@ -54,6 +54,10 @@ vi.mock('electron', () => ({ removeAllListeners: removeAllListenersMock, removeHandler: removeHandlerMock, handle: handleMock + }, + powerMonitor: { + on: vi.fn(), + off: vi.fn() } }))