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>;
|
update(component: React.JSX.Element): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const test: TestType<{
|
export interface ComponentFixtures {
|
||||||
mount<HooksConfig>(
|
mount<HooksConfig>(
|
||||||
component: React.JSX.Element,
|
component: React.JSX.Element,
|
||||||
options?: MountOptions<HooksConfig>
|
options?: MountOptions<HooksConfig>
|
||||||
): Promise<MountResult>;
|
): Promise<MountResult>;
|
||||||
}>;
|
}
|
||||||
|
|
||||||
|
export const test: TestType<ComponentFixtures>;
|
||||||
|
|
||||||
export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core';
|
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>;
|
update(component: JSX.Element): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const test: TestType<{
|
export interface ComponentFixtures {
|
||||||
mount<HooksConfig>(
|
mount<HooksConfig>(
|
||||||
component: JSX.Element,
|
component: JSX.Element,
|
||||||
options?: MountOptions<HooksConfig>
|
options?: MountOptions<HooksConfig>
|
||||||
): Promise<MountResult>;
|
): Promise<MountResult>;
|
||||||
}>;
|
}
|
||||||
|
|
||||||
|
export const test: TestType<ComponentFixtures>;
|
||||||
|
|
||||||
export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core';
|
export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core';
|
||||||
|
|
|
||||||
|
|
@ -39,11 +39,13 @@ export interface MountResult<Component extends InteropComponent> extends Locator
|
||||||
}): Promise<void>;
|
}): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const test: TestType<{
|
export interface ComponentFixtures {
|
||||||
mount<HooksConfig, Component extends InteropComponent = InteropComponent>(
|
mount<HooksConfig, Component extends InteropComponent = InteropComponent>(
|
||||||
component: Component,
|
component: Component,
|
||||||
options?: MountOptions<HooksConfig, Component>
|
options?: MountOptions<HooksConfig, Component>
|
||||||
): Promise<MountResult<Component>>;
|
): Promise<MountResult<Component>>;
|
||||||
}>;
|
}
|
||||||
|
|
||||||
|
export const test: TestType<ComponentFixtures>;
|
||||||
|
|
||||||
export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core';
|
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>;
|
update(component: JSX.Element): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const test: TestType<{
|
export interface ComponentFixtures {
|
||||||
mount<HooksConfig>(
|
mount<HooksConfig>(
|
||||||
component: JSX.Element,
|
component: JSX.Element,
|
||||||
options?: MountOptionsJsx<HooksConfig>
|
options?: MountOptionsJsx<HooksConfig>
|
||||||
|
|
@ -61,6 +61,8 @@ export const test: TestType<{
|
||||||
component: Component,
|
component: Component,
|
||||||
options?: MountOptions<HooksConfig, Component>
|
options?: MountOptions<HooksConfig, Component>
|
||||||
): Promise<MountResult<Component>>;
|
): Promise<MountResult<Component>>;
|
||||||
}>;
|
}
|
||||||
|
|
||||||
|
export const test: TestType<ComponentFixtures>;
|
||||||
|
|
||||||
export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core';
|
export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue