From c87ca052d1281b94f9c6a269b178cc0277f36027 Mon Sep 17 00:00:00 2001 From: Sander Date: Mon, 19 Aug 2024 14:50:25 +0200 Subject: [PATCH] fix(ct): vue jsx component.update type (#32213) partial fix for: https://github.com/microsoft/playwright/issues/31927#issuecomment-2267065378 The options object wasn't treated as partial, unlike in other frameworks, which led to the `component.update({ props: {} })` type being selected instead the `component.update()` during jsx usage. --- packages/playwright-ct-vue/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playwright-ct-vue/index.d.ts b/packages/playwright-ct-vue/index.d.ts index 2d182d4588..822711f4b6 100644 --- a/packages/playwright-ct-vue/index.d.ts +++ b/packages/playwright-ct-vue/index.d.ts @@ -55,7 +55,7 @@ export interface MountResultJsx extends Locator { export const test: TestType<{ mount( component: JSX.Element, - options: MountOptionsJsx + options?: MountOptionsJsx ): Promise; mount( component: Component,