From 700b492b1bcf67b11631f952fa084c0a206edda3 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Fri, 3 Jul 2026 13:30:55 -0700 Subject: [PATCH] Fix main typecheck: pin Buffer in cdp-ws-proxy mid-print test (#7263) Co-authored-by: Orca --- src/main/browser/cdp-ws-proxy.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/browser/cdp-ws-proxy.test.ts b/src/main/browser/cdp-ws-proxy.test.ts index 15976e9c7..c5fa3361d 100644 --- a/src/main/browser/cdp-ws-proxy.test.ts +++ b/src/main/browser/cdp-ws-proxy.test.ts @@ -647,10 +647,10 @@ describe('CdpWsProxy', () => { }) it('does not register a PDF stream when the client disconnects mid-print', async () => { - let resolvePrint: (buf: Buffer) => void = () => {} + let resolvePrint: (buf: Buffer) => void = () => {} mock.webContents.printToPDF.mockImplementationOnce( () => - new Promise((resolve) => { + new Promise>((resolve) => { resolvePrint = resolve }) )