perf(test): split light vitest lanes and restore hooks

This commit is contained in:
Peter Steinberger
2026-04-06 15:50:02 +01:00
parent 5765c4cb2a
commit a010ce462f
14 changed files with 242 additions and 74 deletions

View File

@@ -67,4 +67,30 @@ describe("scripts/test-projects changed-target routing", () => {
},
]);
});
it("routes explicit plugin-sdk light tests to the lighter plugin-sdk lane", () => {
const plans = buildVitestRunPlans(["src/plugin-sdk/temp-path.test.ts"], process.cwd());
expect(plans).toEqual([
{
config: "vitest.plugin-sdk-light.config.ts",
forwardedArgs: [],
includePatterns: ["src/plugin-sdk/temp-path.test.ts"],
watchMode: false,
},
]);
});
it("routes explicit commands light tests to the lighter commands lane", () => {
const plans = buildVitestRunPlans(["src/commands/cleanup-utils.test.ts"], process.cwd());
expect(plans).toEqual([
{
config: "vitest.commands-light.config.ts",
forwardedArgs: [],
includePatterns: ["src/commands/cleanup-utils.test.ts"],
watchMode: false,
},
]);
});
});