Commit 0b86233
committed
fix(tests): revert to working spawn pattern from commit 39ee946
The Proxy approach added unnecessary complexity. The real fix was
ensuring constants.processEnv is a direct reference to process.env
(not a snapshot), which we already have at line 30.
The working pattern from commit 39ee946:
- constants.processEnv = process.env (direct Proxy reference)
- Spawn spreads: {...process.env, ...constants.processEnv, ...spawnEnv}
- VITEST=1 set on actual process.env at module load (lines 23-24)
This preserves Windows Proxy behavior because spreading a Proxy
creates a fresh snapshot each spawn, not a stale object.1 parent be5fc27 commit 0b86233
1 file changed
+5
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | 269 | | |
311 | 270 | | |
312 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
313 | 276 | | |
314 | 277 | | |
315 | 278 | | |
| |||
0 commit comments