From 286adf3af334596a39bb8a4cba68d742bfb5f660 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Mon, 5 Feb 2024 17:19:39 -0800 Subject: [PATCH] chore(ct): export MountResult (#29375) Fixes https://github.com/microsoft/playwright/issues/27509 --- packages/playwright-ct-react/index.d.ts | 2 +- packages/playwright-ct-react17/index.d.ts | 2 +- packages/playwright-ct-solid/index.d.ts | 2 +- packages/playwright-ct-vue/index.d.ts | 4 ++-- packages/playwright-ct-vue2/index.d.ts | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/playwright-ct-react/index.d.ts b/packages/playwright-ct-react/index.d.ts index 807b929b9b592..7cfcf04ba0750 100644 --- a/packages/playwright-ct-react/index.d.ts +++ b/packages/playwright-ct-react/index.d.ts @@ -22,7 +22,7 @@ export interface MountOptions { hooksConfig?: HooksConfig; } -interface MountResult extends Locator { +export interface MountResult extends Locator { unmount(): Promise; update(component: JSX.Element): Promise; } diff --git a/packages/playwright-ct-react17/index.d.ts b/packages/playwright-ct-react17/index.d.ts index 807b929b9b592..7cfcf04ba0750 100644 --- a/packages/playwright-ct-react17/index.d.ts +++ b/packages/playwright-ct-react17/index.d.ts @@ -22,7 +22,7 @@ export interface MountOptions { hooksConfig?: HooksConfig; } -interface MountResult extends Locator { +export interface MountResult extends Locator { unmount(): Promise; update(component: JSX.Element): Promise; } diff --git a/packages/playwright-ct-solid/index.d.ts b/packages/playwright-ct-solid/index.d.ts index 807b929b9b592..7cfcf04ba0750 100644 --- a/packages/playwright-ct-solid/index.d.ts +++ b/packages/playwright-ct-solid/index.d.ts @@ -22,7 +22,7 @@ export interface MountOptions { hooksConfig?: HooksConfig; } -interface MountResult extends Locator { +export interface MountResult extends Locator { unmount(): Promise; update(component: JSX.Element): Promise; } diff --git a/packages/playwright-ct-vue/index.d.ts b/packages/playwright-ct-vue/index.d.ts index e253bc1a35367..308e47c18cad7 100644 --- a/packages/playwright-ct-vue/index.d.ts +++ b/packages/playwright-ct-vue/index.d.ts @@ -40,7 +40,7 @@ export interface MountOptionsJsx { hooksConfig?: HooksConfig; } -interface MountResult extends Locator { +export interface MountResult extends Locator { unmount(): Promise; update(options: { props?: Partial>; @@ -49,7 +49,7 @@ interface MountResult extends Locator { }): Promise; } -interface MountResultJsx extends Locator { +export interface MountResultJsx extends Locator { unmount(): Promise; update(component: JSX.Element): Promise; } diff --git a/packages/playwright-ct-vue2/index.d.ts b/packages/playwright-ct-vue2/index.d.ts index f4bda8830faf9..f76285fb8f1e8 100644 --- a/packages/playwright-ct-vue2/index.d.ts +++ b/packages/playwright-ct-vue2/index.d.ts @@ -40,7 +40,7 @@ export interface MountOptionsJsx { hooksConfig?: HooksConfig; } -interface MountResult extends Locator { +export interface MountResult extends Locator { unmount(): Promise; update(options: { props?: Partial>; @@ -49,7 +49,7 @@ interface MountResult extends Locator { }): Promise; } -interface MountResultJsx extends Locator { +export interface MountResultJsx extends Locator { unmount(): Promise; update(component: JSX.Element): Promise; }