Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(ct): optional hooksConfig mount option (#15921)

sand4rtc11f594c2921
diff --git a/packages/playwright-ct-svelte/index.d.ts b/packages/playwright-ct-svelte/index.d.ts
index 83ddbe129c..46289cb2ec 100644
--- a/packages/playwright-ct-svelte/index.d.ts
+++ b/packages/playwright-ct-svelte/index.d.ts
@@ -39,13 +39,13 @@ interface ComponentFixtures {
props?: { [key: string]: any },
slots?: { [key: string]: any },
on?: { [key: string]: Function },
- hooksConfig: any,
+ hooksConfig?: any,
}): Promise<Locator>;
mount<Props>(component: any, options: {
props: Props,
slots?: { [key: string]: any },
on?: { [key: string]: Function },
- hooksConfig: any,
+ hooksConfig?: any,
}): Promise<Locator>;
}
diff --git a/packages/playwright-ct-vue2/index.d.ts b/packages/playwright-ct-vue2/index.d.ts
index 9e78cb0d99..f5f4d4906d 100644
--- a/packages/playwright-ct-vue2/index.d.ts
+++ b/packages/playwright-ct-vue2/index.d.ts
@@ -40,13 +40,13 @@ export interface ComponentFixtures {
props?: { [key: string]: any },
slots?: { [key: string]: any },
on?: { [key: string]: Function },
- hooksConfig: any,
+ hooksConfig?: any,
}): Promise<Locator>;
mount<Props>(component: any, options: {
props: Props,
slots?: { [key: string]: any },
on?: { [key: string]: Function },
- hooksConfig: any,
+ hooksConfig?: any,
}): Promise<Locator>;
}