effect-playwright
    Preparing search index...

    Interface FullConfig<TestArgs, WorkerArgs>

    Resolved configuration which is accessible via testInfo.config and is passed to the test reporters. To see the format of Playwright configuration file, please see TestConfig instead.

    interface FullConfig<TestArgs = {}, WorkerArgs = {}> {
        argv: string[];
        configFile?: string;
        failOnFlakyTests: boolean;
        forbidOnly: boolean;
        fullyParallel: boolean;
        globalSetup: string | null;
        globalTeardown: string | null;
        globalTimeout: number;
        grep: RegExp | RegExp[];
        grepInvert: RegExp | RegExp[] | null;
        maxFailures: number;
        metadata: Metadata;
        preserveOutput: "always" | "never" | "failures-only";
        projects: FullProject<TestArgs, WorkerArgs>[];
        quiet: boolean;
        reporter: ReporterDescription[];
        reportSlowTests: { max: number; threshold: number } | null;
        rootDir: string;
        shard: { current: number; total: number } | null;
        tags: string[];
        updateSnapshots: "none" | "all" | "missing" | "changed";
        updateSourceMethod: "overwrite" | "3way" | "patch";
        version: string;
        webServer: TestConfigWebServer | null;
        workers: number;
    }

    Type Parameters

    • TestArgs = {}
    • WorkerArgs = {}
    Index
    argv: string[]

    Snapshot of process.argv captured in the runner process. Useful for reading custom command-line arguments — for example, args supplied after the -- separator (npx playwright test -- --build-path=./out). Playwright does not parse these; consumers are responsible for slicing and interpreting them with any argument-parsing library.

    configFile?: string

    Path to the configuration file used to run the tests. The value is an empty string if no config file was used.

    failOnFlakyTests: boolean
    forbidOnly: boolean
    fullyParallel: boolean
    globalSetup: string | null
    globalTeardown: string | null
    globalTimeout: number
    grep: RegExp | RegExp[]
    grepInvert: RegExp | RegExp[] | null
    maxFailures: number
    metadata: Metadata
    preserveOutput: "always" | "never" | "failures-only"

    List of resolved projects.

    quiet: boolean
    reportSlowTests: { max: number; threshold: number } | null

    Type Declaration

    • { max: number; threshold: number }
      • max: number

        The maximum number of slow test files to report.

      • threshold: number

        Test file duration in milliseconds that is considered slow.

    • null
    rootDir: string

    Base directory for all relative paths used in the reporters.

    shard: { current: number; total: number } | null

    Type Declaration

    • { current: number; total: number }
      • current: number

        The index of the shard to execute, one-based.

      • total: number

        The total number of shards.

    • null
    tags: string[]

    Resolved global tags. See testConfig.tag.

    updateSnapshots: "none" | "all" | "missing" | "changed"
    updateSourceMethod: "overwrite" | "3way" | "patch"
    version: string

    Playwright version.

    webServer: TestConfigWebServer | null
    workers: number