@@ -318,15 +318,17 @@ def _build_vitest_behavioral_command(
318318 Command list for subprocess execution.
319319
320320 """
321- cmd = resolve_node_command_list ([
322- "npx" ,
323- "vitest" ,
324- "run" , # Single execution (not watch mode)
325- "--reporter=default" ,
326- "--reporter=junit" ,
327- "--no-file-parallelism" , # Serial execution for deterministic timing
328- "--pool=forks" , # Use child processes so timing markers flow to parent stdout
329- ])
321+ cmd = resolve_node_command_list (
322+ [
323+ "npx" ,
324+ "vitest" ,
325+ "run" , # Single execution (not watch mode)
326+ "--reporter=default" ,
327+ "--reporter=junit" ,
328+ "--no-file-parallelism" , # Serial execution for deterministic timing
329+ "--pool=forks" , # Use child processes so timing markers flow to parent stdout
330+ ]
331+ )
330332
331333 # For monorepos with restrictive vitest configs (e.g., include: test/**/*.test.ts),
332334 # we need to create a custom config that allows all test patterns.
@@ -380,15 +382,17 @@ def _build_vitest_benchmarking_command(
380382 Command list for subprocess execution.
381383
382384 """
383- cmd = resolve_node_command_list ([
384- "npx" ,
385- "vitest" ,
386- "run" , # Single execution (not watch mode)
387- "--reporter=default" ,
388- "--reporter=junit" ,
389- "--no-file-parallelism" , # Serial execution for consistent benchmarking
390- "--pool=forks" , # Use child processes so timing markers flow to parent stdout
391- ])
385+ cmd = resolve_node_command_list (
386+ [
387+ "npx" ,
388+ "vitest" ,
389+ "run" , # Single execution (not watch mode)
390+ "--reporter=default" ,
391+ "--reporter=junit" ,
392+ "--no-file-parallelism" , # Serial execution for consistent benchmarking
393+ "--pool=forks" , # Use child processes so timing markers flow to parent stdout
394+ ]
395+ )
392396
393397 # Use codeflash vitest config to override restrictive include patterns
394398 if project_root :
@@ -806,15 +810,17 @@ def run_vitest_line_profile_tests(
806810 _ensure_runtime_files (effective_cwd )
807811
808812 # Build Vitest command for line profiling - simple run without benchmarking loops
809- vitest_cmd = resolve_node_command_list ([
810- "npx" ,
811- "vitest" ,
812- "run" ,
813- "--reporter=default" ,
814- "--reporter=junit" ,
815- "--no-file-parallelism" , # Serial execution for consistent line profiling
816- "--pool=forks" , # Use child processes so timing markers flow to parent stdout
817- ])
813+ vitest_cmd = resolve_node_command_list (
814+ [
815+ "npx" ,
816+ "vitest" ,
817+ "run" ,
818+ "--reporter=default" ,
819+ "--reporter=junit" ,
820+ "--no-file-parallelism" , # Serial execution for consistent line profiling
821+ "--pool=forks" , # Use child processes so timing markers flow to parent stdout
822+ ]
823+ )
818824
819825 # Use codeflash vitest config to override restrictive include patterns
820826 if effective_cwd :
0 commit comments