test: route extension boundary inventory off unit

This commit is contained in:
Peter Steinberger
2026-04-03 11:29:27 +01:00
parent b406b7d2e4
commit 16ca1f4d74
4 changed files with 42 additions and 19 deletions

View File

@@ -524,25 +524,28 @@ describe("test planner", () => {
artifacts.cleanupTempArtifacts();
});
it("routes targeted boundary inventories through the lean boundary config", () => {
const artifacts = createExecutionArtifacts({});
const plan = buildExecutionPlan(
{
mode: "local",
surfaces: [],
passthroughArgs: ["test/web-search-provider-boundary.test.ts"],
},
{
env: {},
writeTempJsonArtifact: artifacts.writeTempJsonArtifact,
},
);
it.each(["test/extension-test-boundary.test.ts", "test/web-search-provider-boundary.test.ts"])(
"routes targeted boundary inventories through the lean boundary config: %s",
(file) => {
const artifacts = createExecutionArtifacts({});
const plan = buildExecutionPlan(
{
mode: "local",
surfaces: [],
passthroughArgs: [file],
},
{
env: {},
writeTempJsonArtifact: artifacts.writeTempJsonArtifact,
},
);
expect(plan.targetedUnits).toHaveLength(1);
expect(plan.targetedUnits[0]?.surface).toBe("unit");
expect(plan.targetedUnits[0]?.args).toContain("vitest.boundary.config.ts");
artifacts.cleanupTempArtifacts();
});
expect(plan.targetedUnits).toHaveLength(1);
expect(plan.targetedUnits[0]?.surface).toBe("unit");
expect(plan.targetedUnits[0]?.args).toContain("vitest.boundary.config.ts");
artifacts.cleanupTempArtifacts();
},
);
it("normalizes --bail=0 into collect-all failure policy", () => {
const artifacts = createExecutionArtifacts({});