We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76667d1 commit c50a6f6Copy full SHA for c50a6f6
1 file changed
crates/vite_global_cli/src/commands/shell.rs
@@ -235,15 +235,12 @@ mod tests {
235
use super::*;
236
237
#[test]
238
- fn test_detect_shell_posix_even_with_psmodulepath() {
+ fn test_detect_shell_pwsh() {
239
let _guard = vite_shared::EnvConfig::test_guard(vite_shared::EnvConfig {
240
- ps_module_path: Some("/some/path".into()),
+ vp_shell_pwsh: true,
241
..vite_shared::EnvConfig::for_test()
242
});
243
let shell = detect_shell();
244
- #[cfg(not(windows))]
245
- assert!(matches!(shell, Shell::Posix));
246
- #[cfg(windows)]
247
assert!(matches!(shell, Shell::PowerShell));
248
}
249
0 commit comments