perf: speed up auth choice tests

This commit is contained in:
Peter Steinberger
2026-04-25 08:31:36 +01:00
parent 5fe333ada8
commit e9b27ed2a6
4 changed files with 86 additions and 50 deletions

View File

@@ -339,6 +339,16 @@ describe("scripts/test-projects changed-target routing", () => {
});
});
it("routes provider auth choice edits to focused auth-choice tests", () => {
expect(resolveChangedTestTargetPlan(["src/plugins/provider-auth-choice.ts"])).toEqual({
mode: "targets",
targets: [
"src/commands/auth-choice.apply.plugin-provider.test.ts",
"src/commands/auth-choice.test.ts",
],
});
});
it("routes changed utils and shared files to their light scoped lanes", () => {
const plans = buildVitestRunPlans(["--changed", "origin/main"], process.cwd(), () => [
"src/shared/string-normalization.ts",