mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:10:49 +00:00
refactor(auto-reply): extract effective reply route resolution
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user