Vitest 2.0: Test Pool Configuration for Repeatable Development Environments
Goal Develop a stable, repeatable testing workflow in Vitest 2.0 where each test file runs with a clean module cache and isolated global state, while keeping startup time and memory usage within acceptable limits. Constraints & Uncertainty The default pool is threads , which shares the Node.js module cache within a worker but does not automatically reset