refactor(auto-reply): extract effective reply route resolution

This commit is contained in:
Peter Steinberger
2026-04-23 20:39:44 +01:00
parent 72b0e3d033
commit 6fc8913223
5 changed files with 275 additions and 65 deletions

View File

@@ -244,6 +244,22 @@ describe("scripts/test-projects changed-target routing", () => {
]);
});
it("routes auto-reply route source files to route regression tests", () => {
expect(
resolveChangedTestTargetPlan([
"src/auto-reply/reply/dispatch-from-config.ts",
"src/auto-reply/reply/effective-reply-route.ts",
"src/auto-reply/reply/effective-reply-route.test.ts",
]),
).toEqual({
mode: "targets",
targets: [
"src/auto-reply/reply/dispatch-from-config.test.ts",
"src/auto-reply/reply/effective-reply-route.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",