perf(test): trim runtime lookups and add changed bench

This commit is contained in:
Peter Steinberger
2026-04-06 16:48:32 +01:00
parent 8477f1841a
commit 8a33a8d607
11 changed files with 430 additions and 63 deletions

View File

@@ -112,13 +112,17 @@ describe("scripts/test-projects changed-target routing", () => {
it("routes changed commands source allowlist files to sibling light tests", () => {
const plans = buildVitestRunPlans(["--changed", "origin/main"], process.cwd(), () => [
"src/commands/status-overview-values.ts",
"src/commands/gateway-status/helpers.ts",
]);
expect(plans).toEqual([
{
config: "vitest.commands-light.config.ts",
forwardedArgs: [],
includePatterns: ["src/commands/status-overview-values.test.ts"],
includePatterns: [
"src/commands/status-overview-values.test.ts",
"src/commands/gateway-status/helpers.test.ts",
],
watchMode: false,
},
]);