@stencil/playwright
Version:
Testing adapter to use Playwright with Stencil
16 lines (15 loc) • 795 B
TypeScript
import { PlaywrightTestConfig } from '@playwright/test';
type DeepPartial<T> = T extends object ? {
[P in keyof T]?: DeepPartial<T[P]>;
} : T;
/**
* Helper function to easily create a Playwright config for Stencil projects. This function will
* automatically load the Stencil config meta to set default values for the Playwright config respecting the
* Stencil dev server configuration, and set the Stencil namespace and entry path as environment variables for use
* in the Playwright tests.
*
* @param overrides Values to override in the default config. Any Playwright config option can be overridden.
* @returns A {@link PlaywrightTestConfig} object
*/
export declare const createConfig: (overrides?: DeepPartial<PlaywrightTestConfig>) => Promise<PlaywrightTestConfig>;
export {};