Skip to content

Commit 89a7201

Browse files
dingfelikensave
authored andcommitted
fix: test for windows target (#3040)
1 parent f18e0b6 commit 89a7201

File tree

1 file changed

+4
-1
lines changed
  • crates/chat-cli/src/cli/chat/cli

1 file changed

+4
-1
lines changed

crates/chat-cli/src/cli/chat/cli/hooks.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,10 @@ mod tests {
568568
#[cfg(unix)]
569569
let command = format!("cat > {}", test_file_str);
570570
#[cfg(windows)]
571-
let command = format!("type > {}", test_file_str);
571+
let command = format!(
572+
"powershell -Command \"$input | Out-File -FilePath '{}'\"",
573+
test_file_str
574+
);
572575

573576
let hook = Hook {
574577
command,

0 commit comments

Comments
 (0)