/** * Normalize a test line for comparison between manifest and ran tests. * Strips `:line:col` suffixes from file paths. * * e.g. `[chromium] › foo/bar.spec.ts:4:5 › has title` * → `[chromium] › foo/bar.spec.ts › has title` */ export declare function normalizeTestLine(line: string): string; /** * Splits a `[project] › file › suites › title` line into its parts. * * **One delimiter per line**, chosen the way Playwright's own `--test-list` * reader chooses it (`runner/index.js: line.includes("›") ? "›" : ">"`): `›` * when the line uses it, and ASCII `>` only for the legacy format that predates * it. Accepting both at once splits a title that merely *contains* `>`, which * silently loses the test: on Quizizz run 123585, * `… › Create a quiz from library page - import document with >5 questions` * parsed as suite `… import document with` plus title `5 questions`, the * rewritten line matched nothing, and Playwright ran 56 of the 57 tests the * shard was assigned without a word about the 57th. * * The legacy `>` form keeps that ambiguity, because there is nothing else to * disambiguate it with — but nothing we emit uses it (see `SUITES_DELIMITER`), * so a line that reaches it was hand-written. */ export declare function parseTestListLine(line: string): TestList | null; /** * Runs `npx playwright test --list ` and returns all test lines for the file. */ export declare function getAllTestsForFile(file: string, repoPath: string): Promise; export interface TestList { projectName: string; file: string; title: string; suites: string[]; } export interface SerialBlockInfo { file: string; serialDescribeName: string | null; isFileSerial: boolean; } export declare function getSerialBlockInfo(test: TestList, repoPath: string, verbose: boolean): Promise; export interface BuildTestListOptions { outputPath?: string; verbose?: boolean; repoPath?: string; /** * Blocks already found by {@link detectSerialBlocks}. Supplied when the * caller needed them earlier to scope its own work; omit to detect here. */ serialBlocks?: SerialBlockInfo[]; } export interface BuildTestListResult { testsToRun: TestList[]; testListContent: string; outputPath: string; } /** * The distinct serial blocks the given tests sit in, found by parsing each * test's file — no Playwright process involved. * * Split out of `buildTestList` so callers can learn *which files carry a serial * block* before deciding what to list: `allTests` is only ever read through * `isTestInSerialBlock`, which rejects on file mismatch first, so a file with * no block here can never contribute a line. */ export declare function detectSerialBlocks(testsToRun: TestList[], repoPath: string, verbose: boolean): Promise; export declare function buildTestList(testsToRun: TestList[], allTests: TestList[], options: BuildTestListOptions & { verbose: boolean; }): Promise; export declare function expandSerialDependencies(testListContent: string, outputPath: string, repoPath: string): Promise; //# sourceMappingURL=failed-test-list.d.ts.map