Skip to content

Commit bc70112

Browse files
committed
clear envs on e2e test steps
1 parent 2e4294a commit bc70112

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
@@ -180,6 +180,7 @@ fn run_case(runtime: &Runtime, tmpdir: &AbsolutePath, fixture_path: &Path) {
180180
// Use @yarnpkg/shell for cross-platform shell execution
181181
let mut cmd = Command::new(&shell_exe);
182182
cmd.arg(step.as_str())
183+
.env_clear()
183184
.env("PATH", &e2e_env_path)
184185
.env("NO_COLOR", "1")
185186
.current_dir(e2e_stage_path.join(&e2e.cwd));

0 commit comments

Comments
 (0)