mirror of
https://github.com/morluto/rea.git
synced 2026-10-12 02:19:24 +00:00
23 lines
690 B
TypeScript
23 lines
690 B
TypeScript
export interface DevelopmentTestRequest {
|
|
readonly mode: "local" | "changed" | "focused";
|
|
readonly paths: readonly string[];
|
|
readonly base: string;
|
|
readonly dryRun: boolean;
|
|
}
|
|
|
|
/** Parse explicit test paths and an optional branch-comparison base. */
|
|
export function parseDevelopmentTestRequest(
|
|
mode: string,
|
|
arguments_: readonly string[],
|
|
): DevelopmentTestRequest;
|
|
|
|
/** Plan source feedback or explicit tests with runtime/artifact prerequisites. */
|
|
export function developmentTestPlan(
|
|
request: DevelopmentTestRequest,
|
|
baseCommit?: string,
|
|
): {
|
|
readonly needsBuild: boolean;
|
|
readonly artifactTasks: readonly string[];
|
|
readonly vitestArguments: readonly string[];
|
|
};
|