Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix vitest test running and debugging for v4 with backwards compatibility (#43241)

Freddy Fallond52defe35a6e
diff --git a/crates/languages/src/typescript.rs b/crates/languages/src/typescript.rs
index a7aa1bc49c0..7daf178d372 100644
--- a/crates/languages/src/typescript.rs
+++ b/crates/languages/src/typescript.rs
@@ -111,8 +111,7 @@ impl PackageJsonData {
"--".to_owned(),
"vitest".to_owned(),
"run".to_owned(),
- "--poolOptions.forks.minForks=0".to_owned(),
- "--poolOptions.forks.maxForks=1".to_owned(),
+ "--no-file-parallelism".to_owned(),
VariableName::File.template_value(),
],
cwd: Some(TYPESCRIPT_VITEST_PACKAGE_PATH_VARIABLE.template_value()),
@@ -130,8 +129,7 @@ impl PackageJsonData {
"--".to_owned(),
"vitest".to_owned(),
"run".to_owned(),
- "--poolOptions.forks.minForks=0".to_owned(),
- "--poolOptions.forks.maxForks=1".to_owned(),
+ "--no-file-parallelism".to_owned(),
"--testNamePattern".to_owned(),
format!(
"\"{}\"",