diff --git a/crates/vite_task_bin/tests/e2e_snapshots/main.rs b/crates/vite_task_bin/tests/e2e_snapshots/main.rs index 1b45b81b..e17d6acd 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/main.rs +++ b/crates/vite_task_bin/tests/e2e_snapshots/main.rs @@ -17,8 +17,10 @@ use vite_path::{AbsolutePath, AbsolutePathBuf, RelativePathBuf}; use vite_str::Str; use vite_workspace::find_workspace_root; -/// Timeout for each step in e2e tests -const STEP_TIMEOUT: Duration = Duration::from_secs(20); +/// Timeout for each step in e2e tests. +/// Windows CI needs a longer timeout due to Git Bash startup overhead and slower I/O. +const STEP_TIMEOUT: Duration = + if cfg!(windows) { Duration::from_secs(60) } else { Duration::from_secs(20) }; /// Screen size for the PTY terminal. Large enough to avoid line wrapping. const SCREEN_SIZE: ScreenSize = ScreenSize { rows: 500, cols: 500 };