fix(test): route misc extension targets to the misc shard

This commit is contained in:
Vincent Koc
2026-04-22 21:38:56 -07:00
parent 754577b43e
commit 4984cad5ae
2 changed files with 20 additions and 0 deletions

View File

@@ -97,6 +97,19 @@ describe("scripts/test-projects changed-target routing", () => {
]);
});
it("routes misc extensions to the misc extension shard", () => {
const plans = buildVitestRunPlans(["extensions/thread-ownership"], process.cwd());
expect(plans).toEqual([
{
config: "test/vitest/vitest.extension-misc.config.ts",
forwardedArgs: [],
includePatterns: ["extensions/thread-ownership/**/*.test.ts"],
watchMode: false,
},
]);
});
it("keeps the broad changed run for shared test helpers", () => {
expect(
resolveChangedTargetArgs(["--changed", "origin/main"], process.cwd(), () => [