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

@@ -813,6 +813,18 @@ export function decideExecutionPlan({
};
}
export function normalizeForwardedArgs(argv) {
const normalized = [];
for (const arg of argv) {
if (arg === "--full" || arg === "--no-cache") continue;
if (arg === "--silent" || arg.startsWith("--silent=")) continue;
normalized.push(arg);
}
return normalized;
}
export function main(argv = process.argv.slice(2)) {
const forceFullSuite =
process.env.CI === "true" ||
@@ -823,7 +835,7 @@ export function main(argv = process.argv.slice(2)) {
process.env.FUSION_TEST_NO_CACHE === "1" ||
argv.includes("--no-cache");
const forwardedArgs = argv.filter((arg) => arg !== "--full" && arg !== "--no-cache");
const forwardedArgs = normalizeForwardedArgs(argv);
run("pnpm", ["sync:fusion-skill:check"]);
ensureTestArtifacts(rootDir);