Commit bc941d2
committed
fix(tests): preserve process.env proxy for Windows
The spread operator {...process.env} breaks Windows environment variable
handling because it loses the special proxy behavior that Node.js uses
for process.env. On Windows, environment variables are case-insensitive
and accessed through a proxy that the spread operator doesn't preserve.
This was causing tests to produce empty CLI output on Windows runners
because critical environment variables weren't properly passed to
spawned processes.
Changes:
- Set VITEST='1' directly on process.env instead of spreading
- Restore processEnv to direct process.env reference
- Add comments explaining Windows compatibility requirement
This reverts processEnv behavior to match commit 39ee946 which
had working Windows tests.
Fixes: Empty CLI output in Windows CI tests (504 test failures)1 parent 9a5a222 commit bc941d2
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
0 commit comments