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(<Component prop={} />)`
during jsx usage.
This commit is contained in:
Sander 2024-08-19 14:50:25 +02:00 committed by GitHub
parent 010778f6c5
commit c87ca052d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,7 @@ export interface MountResultJsx extends Locator {
export const test: TestType<{
mount<HooksConfig>(
component: JSX.Element,
options: MountOptionsJsx<HooksConfig>
options?: MountOptionsJsx<HooksConfig>
): Promise<MountResultJsx>;
mount<HooksConfig, Component = unknown>(
component: Component,