import type { FullConfig, FullResult, Reporter, TestCase, TestResult } from '@playwright/test/reporter'; export interface TestLifecycleReporterOptions { /** * Fail the run when any test ends with status `skipped`. This includes `test.fixme`, * `test.skip`, and tests skipped at runtime, because Playwright reports all of them as * `skipped`. Defaults to `false`; the caller decides, for example * `failOnSkippedTests: Boolean(process.env.CI)`. */ failOnSkippedTests?: boolean; } export default class TestLifecycleReporter implements Reporter { static readonly modulePath: string; private readonly failOnSkippedTests; private readonly skipped; private rootDir; private shard; constructor(options?: TestLifecycleReporterOptions); onBegin(config: FullConfig): void; onTestBegin(test: TestCase, result: TestResult): void; onTestEnd(test: TestCase, result: TestResult): void; onEnd(result: FullResult): Promise<{ status: FullResult['status']; } | undefined>; printsToStdio(): boolean; private relativeFile; private record; }