From cdda966774257d667a38744bcb00638ad55740f3 Mon Sep 17 00:00:00 2001 From: Xiaoji Chen Date: Fri, 5 Apr 2024 23:01:54 -0700 Subject: [PATCH] fix(test-utils): BrowserTestDriver injected function types --- .../test-utils/src/browser-automation/browser-test-driver.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/test-utils/src/browser-automation/browser-test-driver.ts b/modules/test-utils/src/browser-automation/browser-test-driver.ts index 0e2da65..0d7ac55 100644 --- a/modules/test-utils/src/browser-automation/browser-test-driver.ts +++ b/modules/test-utils/src/browser-automation/browser-test-driver.ts @@ -47,8 +47,8 @@ export type DiffImageResult = { declare global { function browserTestDriver_fail(): void; - function browserTestDriver_finish(): string; - function browserTestDriver_emulateInput(event: unknown): void; + function browserTestDriver_finish(message?: string): void; + function browserTestDriver_emulateInput(event: unknown): Promise; function browserTestDriver_captureAndDiffScreen(opts: DiffImagesOpts): Promise; }