perf: speed up focused tests

This commit is contained in:
Peter Steinberger
2026-04-25 08:23:28 +01:00
parent 7132ca5766
commit e0beea97aa
6 changed files with 114 additions and 168 deletions

View File

@@ -323,6 +323,22 @@ describe("scripts/test-projects changed-target routing", () => {
});
});
it("routes memory doctor and embedding default edits to focused tests", () => {
expect(
resolveChangedTestTargetPlan([
"src/commands/doctor-memory-search.ts",
"src/memory-host-sdk/host/embedding-defaults.ts",
"src/memory-host-sdk/host/embeddings.ts",
]),
).toEqual({
mode: "targets",
targets: [
"src/commands/doctor-memory-search.test.ts",
"src/memory-host-sdk/host/embeddings.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",