test: enable vmForks for targeted channel test runs

Channel tests were always using process forks, missing the shared
transform cache that vmForks provides. This caused ~138s import
overhead per file. Now uses vmForks when available, matching the
pattern already used by unit-fast and extensions suites.
This commit is contained in:
Ayaan Zaidi
2026-03-18 15:54:02 +05:30
parent f2655e1e92
commit 0e9b899aee

View File

@@ -487,7 +487,7 @@ const createTargetedEntry = (owner, isolated, filters) => {
"run",
"--config",
"vitest.channels.config.ts",
...(forceForks ? ["--pool=forks"] : []),
...(forceForks ? ["--pool=forks"] : useVmForks ? ["--pool=vmForks"] : []),
...filters,
],
};