Skip to content

Commit c50a6f6

Browse files
committed
fix: use updated test code from c38d081
1 parent 76667d1 commit c50a6f6

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • crates/vite_global_cli/src/commands

crates/vite_global_cli/src/commands/shell.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,15 +235,12 @@ mod tests {
235235
use super::*;
236236

237237
#[test]
238-
fn test_detect_shell_posix_even_with_psmodulepath() {
238+
fn test_detect_shell_pwsh() {
239239
let _guard = vite_shared::EnvConfig::test_guard(vite_shared::EnvConfig {
240-
ps_module_path: Some("/some/path".into()),
240+
vp_shell_pwsh: true,
241241
..vite_shared::EnvConfig::for_test()
242242
});
243243
let shell = detect_shell();
244-
#[cfg(not(windows))]
245-
assert!(matches!(shell, Shell::Posix));
246-
#[cfg(windows)]
247244
assert!(matches!(shell, Shell::PowerShell));
248245
}
249246

0 commit comments

Comments
 (0)