perf: route bundled and extension helper tests

This commit is contained in:
Peter Steinberger
2026-04-04 01:53:47 +01:00
parent 269771a4b6
commit ac11e02518
2 changed files with 47 additions and 16 deletions

View File

@@ -78,6 +78,17 @@ describe("test-projects args", () => {
]);
});
it("routes bundled-plugin-dependent unit targets to the bundled config", () => {
expect(buildVitestRunPlans(["src/plugins/loader.test.ts"])).toEqual([
{
config: "vitest.bundled.config.ts",
forwardedArgs: [],
includePatterns: ["src/plugins/loader.test.ts"],
watchMode: false,
},
]);
});
it("routes command targets to the commands config", () => {
expect(buildVitestRunPlans(["src/commands/status.summary.test.ts"])).toEqual([
{
@@ -133,6 +144,19 @@ describe("test-projects args", () => {
]);
});
it("widens extension helper targets to sibling extension tests", () => {
expect(
buildVitestRunPlans(["extensions/memory-core/src/memory/test-runtime-mocks.ts"]),
).toEqual([
{
config: "vitest.extensions.config.ts",
forwardedArgs: [],
includePatterns: ["extensions/memory-core/src/memory/**/*.test.ts"],
watchMode: false,
},
]);
});
it("routes e2e targets straight to the e2e config", () => {
expect(buildVitestRunPlans(["src/commands/models.set.e2e.test.ts"])).toEqual([
{