refactor: add incremental capability migration safeguards (#819)

This commit is contained in:
N0zoM1z0
2026-10-07 10:56:06 +08:00
committed by GitHub
parent 6caa38a0ca
commit 75f50d86f6
17 changed files with 421 additions and 66 deletions
+14
View File
@@ -0,0 +1,14 @@
/** Compare actual Vitest discovery with repository-owned test paths. */
export function compareTestDiscovery(
expectedPaths: readonly string[],
discovery: unknown,
root: string,
): {
readonly missing: readonly string[];
readonly unexpected: readonly string[];
readonly duplicates: readonly {
readonly file: string;
readonly projects: readonly string[];
}[];
readonly discovered: number;
};