chore(ct): expose fixture types for downstream use (#37457)
This commit is contained in:
parent
1125381b94
commit
4e9ce1deb8
|
|
@ -27,11 +27,13 @@ export interface MountResult extends Locator {
|
|||
update(component: React.JSX.Element): Promise<void>;
|
||||
}
|
||||
|
||||
export const test: TestType<{
|
||||
export interface ComponentFixtures {
|
||||
mount<HooksConfig>(
|
||||
component: React.JSX.Element,
|
||||
options?: MountOptions<HooksConfig>
|
||||
): Promise<MountResult>;
|
||||
}>;
|
||||
}
|
||||
|
||||
export const test: TestType<ComponentFixtures>;
|
||||
|
||||
export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core';
|
||||
|
|
|
|||
|
|
@ -25,11 +25,13 @@ export interface MountResult extends Locator {
|
|||
update(component: JSX.Element): Promise<void>;
|
||||
}
|
||||
|
||||
export const test: TestType<{
|
||||
export interface ComponentFixtures {
|
||||
mount<HooksConfig>(
|
||||
component: JSX.Element,
|
||||
options?: MountOptions<HooksConfig>
|
||||
): Promise<MountResult>;
|
||||
}>;
|
||||
}
|
||||
|
||||
export const test: TestType<ComponentFixtures>;
|
||||
|
||||
export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core';
|
||||
|
|
|
|||
|
|
@ -39,11 +39,13 @@ export interface MountResult<Component extends InteropComponent> extends Locator
|
|||
}): Promise<void>;
|
||||
}
|
||||
|
||||
export const test: TestType<{
|
||||
export interface ComponentFixtures {
|
||||
mount<HooksConfig, Component extends InteropComponent = InteropComponent>(
|
||||
component: Component,
|
||||
options?: MountOptions<HooksConfig, Component>
|
||||
): Promise<MountResult<Component>>;
|
||||
}>;
|
||||
}
|
||||
|
||||
export const test: TestType<ComponentFixtures>;
|
||||
|
||||
export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core';
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export interface MountResultJsx extends Locator {
|
|||
update(component: JSX.Element): Promise<void>;
|
||||
}
|
||||
|
||||
export const test: TestType<{
|
||||
export interface ComponentFixtures {
|
||||
mount<HooksConfig>(
|
||||
component: JSX.Element,
|
||||
options?: MountOptionsJsx<HooksConfig>
|
||||
|
|
@ -61,6 +61,8 @@ export const test: TestType<{
|
|||
component: Component,
|
||||
options?: MountOptions<HooksConfig, Component>
|
||||
): Promise<MountResult<Component>>;
|
||||
}>;
|
||||
}
|
||||
|
||||
export const test: TestType<ComponentFixtures>;
|
||||
|
||||
export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core';
|
||||
|
|
|
|||
Loading…
Reference in New Issue