fix(FN-3947): strip forwarded vitest silent flags

This commit is contained in:
gsxdsm
2026-05-10 12:55:47 -07:00
parent bd26b24076
commit fa8b42cc86
2 changed files with 20 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
import { describe, expect, it } from "vitest";
import {
decideExecutionPlan,
normalizeForwardedArgs,
resolveAffectedPackages,
shouldForceFullSuite,
} from "../../../../scripts/test-changed.mjs";
@@ -55,6 +56,12 @@ describe("root test command changed-only planning", () => {
expect(shouldForceFullSuite(["package.json"])).toBe(true);
expect(shouldForceFullSuite(["packages/core/src/store.ts"])).toBe(false);
});
it("strips forwarded silent flags so package vitest scripts do not receive duplicates", () => {
expect(
normalizeForwardedArgs(["--full", "--silent", "--silent=passed-only", "--reporter=dot"]),
).toEqual(["--reporter=dot"]);
});
});
describe("CI shard test planner", () => {