fix(FN-3947): strip forwarded vitest silent flags
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user