feat(ct): export component fixture types to enable re-export (#15583)

This commit is contained in:
Pavel Feldman 2022-07-12 12:42:50 -08:00 committed by GitHub
parent 428cdc073c
commit 56fb3ddefb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -34,7 +34,7 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
} }
}; };
interface ComponentFixtures { export interface ComponentFixtures {
mount(component: JSX.Element, options?: { hooksConfig?: any }): Promise<Locator>; mount(component: JSX.Element, options?: { hooksConfig?: any }): Promise<Locator>;
} }

View file

@ -34,7 +34,7 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
} }
}; };
interface ComponentFixtures { export interface ComponentFixtures {
mount<Props = { [key: string]: any }>(component: any, options?: { mount<Props = { [key: string]: any }>(component: any, options?: {
props?: Props, props?: Props,
slots?: { [key: string]: any }, slots?: { [key: string]: any },

View file

@ -34,7 +34,7 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
} }
}; };
interface ComponentFixtures { export interface ComponentFixtures {
mount(component: JSX.Element): Promise<Locator>; mount(component: JSX.Element): Promise<Locator>;
mount<Props = { [key: string]: any }>(component: any, options?: { mount<Props = { [key: string]: any }>(component: any, options?: {
props?: Props, props?: Props,

View file

@ -34,7 +34,7 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
} }
}; };
interface ComponentFixtures { export interface ComponentFixtures {
mount(component: JSX.Element): Promise<Locator>; mount(component: JSX.Element): Promise<Locator>;
mount<Props = { [key: string]: any }>(component: any, options?: { mount<Props = { [key: string]: any }>(component: any, options?: {
props?: Props, props?: Props,