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:
parent
2ecc24eb26
commit
06f7d791b7
2 changed files with 8 additions and 1 deletions
|
@ -175,7 +175,10 @@ impl PackageJsonData {
|
||||||
"vitest".to_owned(),
|
"vitest".to_owned(),
|
||||||
"run".to_owned(),
|
"run".to_owned(),
|
||||||
"--testNamePattern".to_owned(),
|
"--testNamePattern".to_owned(),
|
||||||
format!("\"{}\"", "vitest".to_owned()),
|
format!(
|
||||||
|
"\"{}\"",
|
||||||
|
TYPESCRIPT_VITEST_TEST_NAME_VARIABLE.template_value()
|
||||||
|
),
|
||||||
VariableName::RelativeFile.template_value(),
|
VariableName::RelativeFile.template_value(),
|
||||||
],
|
],
|
||||||
tags: vec![
|
tags: vec![
|
||||||
|
|
|
@ -54,6 +54,10 @@ impl DapLocator for NodeLocator {
|
||||||
"runtimeExecutable": program_path,
|
"runtimeExecutable": program_path,
|
||||||
"args": args,
|
"args": args,
|
||||||
"cwd": build_config.cwd.clone(),
|
"cwd": build_config.cwd.clone(),
|
||||||
|
"env": {
|
||||||
|
"VITEST_MIN_FORKS": "0",
|
||||||
|
"VITEST_MAX_FORKS": "1"
|
||||||
|
},
|
||||||
"runtimeArgs": ["--inspect-brk"],
|
"runtimeArgs": ["--inspect-brk"],
|
||||||
"console": "integratedTerminal",
|
"console": "integratedTerminal",
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue