Skip to content

Commit

Permalink
fix(ct): vue jsx component.update type (#32213)
Browse files Browse the repository at this point in the history
partial fix for:
#31927 (comment)

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.
  • Loading branch information
sand4rt committed Aug 19, 2024
1 parent 010778f commit c87ca05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playwright-ct-vue/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c87ca05

Please sign in to comment.