Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
debugger: Run jest tests serially (#32473)
Cole Millerc55630889aa9
diff --git a/crates/project/src/debugger/locators/node.rs b/crates/project/src/debugger/locators/node.rsindex 9199abef91f..a3a386ecda1 100644--- a/crates/project/src/debugger/locators/node.rs+++ b/crates/project/src/debugger/locators/node.rs@@ -11,6 +11,8 @@ pub(crate) struct NodeLocator;const TYPESCRIPT_RUNNER_VARIABLE: VariableName =VariableName::Custom(Cow::Borrowed("TYPESCRIPT_RUNNER"));+const TYPESCRIPT_JEST_TASK_VARIABLE: VariableName =+ VariableName::Custom(Cow::Borrowed("TYPESCRIPT_JEST"));#[async_trait]impl DapLocator for NodeLocator {@@ -41,7 +43,15 @@ impl DapLocator for NodeLocator {.join("node_modules").join(".bin").join(test_library);- let args = build_config.args[1..].to_vec();++ let mut args = if test_library == "jest"+ || test_library == &TYPESCRIPT_JEST_TASK_VARIABLE.template_value()+ {+ vec!["--runInBand".to_owned()]+ } else {+ vec![]+ };+ args.extend(build_config.args[1..].iter().cloned());let config = serde_json::json!({"request": "launch",