mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-05 00:48:37 +03:00
feat(ct): export component fixture types to enable re-export (#15583)
This commit is contained in:
parent
428cdc073c
commit
56fb3ddefb
2
packages/playwright-ct-react/index.d.ts
vendored
2
packages/playwright-ct-react/index.d.ts
vendored
@ -34,7 +34,7 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
||||
}
|
||||
};
|
||||
|
||||
interface ComponentFixtures {
|
||||
export interface ComponentFixtures {
|
||||
mount(component: JSX.Element, options?: { hooksConfig?: any }): Promise<Locator>;
|
||||
}
|
||||
|
||||
|
2
packages/playwright-ct-svelte/index.d.ts
vendored
2
packages/playwright-ct-svelte/index.d.ts
vendored
@ -34,7 +34,7 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
||||
}
|
||||
};
|
||||
|
||||
interface ComponentFixtures {
|
||||
export interface ComponentFixtures {
|
||||
mount<Props = { [key: string]: any }>(component: any, options?: {
|
||||
props?: Props,
|
||||
slots?: { [key: string]: any },
|
||||
|
2
packages/playwright-ct-vue/index.d.ts
vendored
2
packages/playwright-ct-vue/index.d.ts
vendored
@ -34,7 +34,7 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
||||
}
|
||||
};
|
||||
|
||||
interface ComponentFixtures {
|
||||
export interface ComponentFixtures {
|
||||
mount(component: JSX.Element): Promise<Locator>;
|
||||
mount<Props = { [key: string]: any }>(component: any, options?: {
|
||||
props?: Props,
|
||||
|
2
packages/playwright-ct-vue2/index.d.ts
vendored
2
packages/playwright-ct-vue2/index.d.ts
vendored
@ -34,7 +34,7 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
||||
}
|
||||
};
|
||||
|
||||
interface ComponentFixtures {
|
||||
export interface ComponentFixtures {
|
||||
mount(component: JSX.Element): Promise<Locator>;
|
||||
mount<Props = { [key: string]: any }>(component: any, options?: {
|
||||
props?: Props,
|
||||
|
Loading…
Reference in New Issue
Block a user