From ebe4683a9e77e4f3450c74ec9bbf48d1892cf3be Mon Sep 17 00:00:00 2001 From: jackwener Date: Thu, 19 Mar 2026 16:43:58 +0800 Subject: [PATCH] fix: add screenshot mock to executor.test.ts for IPage compat tsc --noEmit failed because createMockPage() was missing the screenshot() method added to IPage in the round 2 review fix. --- src/pipeline/executor.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pipeline/executor.test.ts b/src/pipeline/executor.test.ts index 1b6217e..dcd1b67 100644 --- a/src/pipeline/executor.test.ts +++ b/src/pipeline/executor.test.ts @@ -26,6 +26,7 @@ function createMockPage(overrides: Partial = {}): IPage { autoScroll: vi.fn(), installInterceptor: vi.fn(), getInterceptedRequests: vi.fn().mockResolvedValue([]), + screenshot: vi.fn().mockResolvedValue(''), ...overrides, }; }