test(vitest): cut unit-ui startup overhead

This commit is contained in:
Vincent Koc
2026-04-16 12:16:21 -07:00
parent 29427fefc7
commit 2285429aa2
14 changed files with 99 additions and 42 deletions

View File

@@ -2,7 +2,7 @@ import {
collectBroadUnitFastTestCandidates,
collectUnitFastTestFileAnalysis,
collectUnitFastTestCandidates,
unitFastTestFiles,
getUnitFastTestFiles,
} from "../test/vitest/vitest.unit-fast-paths.mjs";
const args = new Set(process.argv.slice(2));
@@ -16,6 +16,7 @@ const candidateCount =
scope === "broad"
? collectBroadUnitFastTestCandidates(process.cwd()).length
: collectUnitFastTestCandidates(process.cwd()).length;
const unitFastTestFiles = getUnitFastTestFiles();
const unitFastCount = analysis.filter((entry) => entry.unitFast).length;
for (const entry of rejected) {