test(FN-000): address follow-up review feedback

This commit is contained in:
Aron Prins
2026-05-07 18:08:08 +02:00
parent 76a2d8de80
commit 2bc0f53064
5 changed files with 29 additions and 24 deletions

View File

@@ -54,12 +54,7 @@ function hasSharedIsolation(config) {
}
function hasSharedWorkerBudget(config) {
return (
/computeMaxWorkers/.test(config) &&
/\bmaxWorkers\b/.test(config) &&
/\bpoolOptions\b/.test(config) &&
/\bmax(?:Threads|Forks)\s*:\s*maxWorkers\b/.test(config)
);
return /computeMaxWorkers/.test(config) && /\bmaxWorkers\b/.test(config);
}
test("workspace packages with test scripts use shared Vitest governance", () => {
@@ -89,7 +84,7 @@ test("workspace packages with test scripts use shared Vitest governance", () =>
failures.push(`${manifest.name}: missing shared vitest setup/teardown isolation`);
}
if (!hasSharedWorkerBudget(config)) {
failures.push(`${manifest.name}: missing shared computeMaxWorkers/maxWorkers poolOptions budget`);
failures.push(`${manifest.name}: missing shared computeMaxWorkers/maxWorkers budget`);
}
}