Commit f1169c0
committed
fix(tests): omit env option when no custom env vars provided
The spawn function might be spreading or manipulating the env parameter
internally. By not passing the env option at all when no custom
environment variables are needed, we allow the spawn function to use
process.env directly, preserving Windows proxy behavior.
Only pass env when spawnEnv is provided for custom environment
variables.1 parent 14bb554 commit f1169c0
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
| 270 | + | |
270 | 271 | | |
271 | | - | |
272 | | - | |
273 | | - | |
| 272 | + | |
274 | 273 | | |
275 | | - | |
276 | 274 | | |
277 | 275 | | |
278 | 276 | | |
279 | 277 | | |
280 | 278 | | |
281 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
282 | 285 | | |
283 | 286 | | |
284 | 287 | | |
| |||
0 commit comments