Skip to content

Pomeranian development reference / core/src/root-fixture / rootFixture

Function: rootFixture() ​

rootFixture<C>(Class, ...__namedParameters): (__namedParameters, use) => Promise<void>

Defined in: packages/core/src/root-fixture.ts:11

Create a designated application tree before child fields initialize. Use the returned callback with Playwright Test's test.extend.

Type Parameters ​

C ​

C extends Class

Parameters ​

Class ​

C & (Result<C> extends Result<C>["root"] ? unknown : never)

__namedParameters ​

...Result<C> extends DomPageObject<UnboundRoot> ? [target?: Target] : []

Returns ​

(__namedParameters, use) => Promise<void>

Since ​

Available since @pomeranian/core@Unreleased

Unreleased core API: @pomeranian/core implementation from main; no npm release is implied.

Unreleased development documentation from main. APIs and prototypes are labelled separately.