type SyncTestCase = { id: string; name: string; file_path: string; suites: string[]; playwright_project: string; }; export type SyncManifest = { test_cases?: SyncTestCase[]; }; export declare class NoTestCasesMatchedError extends Error { constructor(requestedCount: number); } export interface SelectTestListResult { lines: string[]; matchedIds: string[]; unmatchedIds: string[]; } /** * Selects the raw-name `--test-list` lines for the requested test case ids * (Playwright per-project `test.id`). Serial-block expansion is NOT done here — * it is applied by `buildTestCaseList` via `expandSerialDependencies`, the same * flow rerun-failed and resume-run use. */ export declare function selectTestListLines(manifest: SyncManifest, ids: string[]): SelectTestListResult; export interface BuildTestCaseListOptions { outputPath: string; repoPath: string; reporterPath?: string; verbose?: boolean; /** * Fail instead of warning when an id does not match a test in this checkout. * * Off by default, because a caller-supplied selection (a user picking test * case ids in the dashboard) legitimately carries ids for tests that have * since been renamed or deleted, and dropping those is the right answer. * * On for a shard assignment, where it is the opposite: the ids partition the * whole suite across shards, so an id silently dropped here runs on **no** * shard at all and vanishes from the run. Failing sends the shard back to * `--shard=i/N`, which cannot lose a test because it partitions whatever * Playwright discovered. */ requireAllIds?: boolean; } export interface BuildTestCaseListResult { outputPath: string; lines: string[]; matchedIds: string[]; unmatchedIds: string[]; } /** * Builds a Playwright `--test-list` file selecting exactly the tests for the * given test case ids (per-project `test.id`s). Serial-block predecessors are * pulled in via `expandSerialDependencies` (the same flow rerun-failed and * resume-run use), so dependent tests don't fail. * * Throws when no requested id matches any test — callers must NOT fall back to * running the whole suite. */ export declare function buildTestCaseList(ids: string[], options: BuildTestCaseListOptions): Promise; export {}; //# sourceMappingURL=test-case-list.d.ts.map