From 69986f2ff5d30640085795d85c62f5b89790777b Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Tue, 26 May 2026 15:13:15 -0700 Subject: [PATCH] Add powerMonitor to electron mock in attach-main-window-services test (#2855) Co-authored-by: Orca --- src/main/window/attach-main-window-services.test.ts | 4 ++++ 1 file changed, 4 insertions(+) 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() } }))