debugger: Fix a couple of issues with vitest (#32543)

- Pass the right test name filter
- Limit the number of forks used by the testing pool in the spirit of
#32473

Release Notes:

- Debugger Beta: switched to running vitest tests serially when
debugging.
This commit is contained in:
Cole Miller 2025-06-11 10:36:23 -04:00 committed by GitHub
parent 2ecc24eb26
commit 06f7d791b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -54,6 +54,10 @@ impl DapLocator for NodeLocator {
"runtimeExecutable": program_path,
"args": args,
"cwd": build_config.cwd.clone(),
"env": {
"VITEST_MIN_FORKS": "0",
"VITEST_MAX_FORKS": "1"
},
"runtimeArgs": ["--inspect-brk"],
"console": "integratedTerminal",
});