Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

docs: refresh STATIC_TEST_ENV_VARS comment for WORKTRUNK_TEST_POWERSHELL_ENV (#2585)

Maximilian Roos8056266504c6
diff --git a/src/testing/mod.rs b/src/testing/mod.rs
index 5631c8ebf..572217caf 100644
--- a/src/testing/mod.rs
+++ b/src/testing/mod.rs
@@ -263,9 +263,10 @@ pub const STATIC_TEST_ENV_VARS: &[(&str, &str)] = &[
("WORKTRUNK_TEST_FISH_INSTALLED", "0"),
("WORKTRUNK_TEST_NUSHELL_ENV", "0"),
("WORKTRUNK_TEST_POWERSHELL_INSTALLED", "0"),
- // Disable PowerShell auto-detection (PSModulePath / SHELL signal). Orthogonal
- // to _INSTALLED above: this gates whether PS is iterated at all in
- // scan_shell_configs; _INSTALLED gates the Skipped path once it is iterated.
+ // Disable PowerShell auto-detection (PSModulePath / SHELL signal).
+ // Iteration is unconditional (matches the other shells); this var only
+ // controls `allow_create` via `should_auto_configure_powershell()` so we
+ // don't write a profile in tests that aren't asserting that path.
("WORKTRUNK_TEST_POWERSHELL_ENV", "0"),
];