chore(test): separate development feedback from full verification (#599)

This commit is contained in:
N0zoM1z0
2026-10-06 00:59:26 +08:00
committed by GitHub
parent 9c25dc4ed2
commit 82957c98bf
13 changed files with 479 additions and 66 deletions
+21
View File
@@ -0,0 +1,21 @@
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 a strict explicit run with its build prerequisite. */
export function developmentTestPlan(
request: DevelopmentTestRequest,
baseCommit?: string,
): {
readonly needsBuild: boolean;
readonly vitestArguments: readonly string[];
};