UNPKG

@nx/playwright

Version:

The Nx Plugin for Playwright contains executors and generators allowing your workspace to use the powerful Playwright integration testing capabilities.

31 lines (30 loc) 966 B
export interface NxPlaywrightOptions { /** * The directory where the e2e tests are located. * @default './src' **/ testDir?: string; } /** * nx E2E Preset for Playwright * @description * this preset contains the base configuration * for your e2e tests that nx recommends. * By default html reporter is configured * along with the following browsers: * - chromium * - firefox * - webkit * These are generated by default. * * you can easily extend this within your playwright config via spreading the preset * @example * export default defineConfig({ * ...nxE2EPreset(__filename, options) * // add your own config here * }) * * @param pathToConfig will be used to construct the output paths for reporters and test results * @param options optional configuration options */ export declare function nxE2EPreset(pathToConfig: string, options?: NxPlaywrightOptions): import("@playwright/test").PlaywrightTestConfig<{}, {}>;