diff --git a/packages/main/tests/unit.spec.ts b/packages/main/tests/unit.spec.ts index b621346..3b12d73 100644 --- a/packages/main/tests/unit.spec.ts +++ b/packages/main/tests/unit.spec.ts @@ -22,6 +22,11 @@ vi.mock('electron', () => { bw.prototype.focus = vi.fn(); bw.prototype.restore = vi.fn(); bw.prototype.setMenuBarVisibility = vi.fn(); + bw.prototype.webContents = { + session: { + on: vi.fn(), + }, + }; const app: Pick = { getAppPath(): string {