Skip to content

Commit 631f2e0

Browse files
branchseerclaude
andcommitted
fix: set FORCE_COLOR=0 in e2e tests to prevent color output on Windows
On Windows CI, terminal color detection may behave differently, causing ANSI escape codes to appear in snapshot output even with NO_COLOR=1 set. Explicitly setting FORCE_COLOR=0 ensures colors are fully disabled. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8988bcd commit 631f2e0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • crates/vite_task_bin/tests/test_snapshots

crates/vite_task_bin/tests/test_snapshots/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ fn run_case(runtime: &Runtime, tmpdir: &AbsolutePath, fixture_path: &Path) {
181181
cmd.arg(step.as_str())
182182
.env("PATH", &e2e_env_path)
183183
.env("NO_COLOR", "1")
184+
.env("FORCE_COLOR", "0")
184185
.current_dir(e2e_stage_path.join(&e2e.cwd));
185186
let output = cmd.output().unwrap();
186187

0 commit comments

Comments
 (0)