Repository navigation
Commit 527dd22
test(e2e): isolate sync option-routing children from ambient NODE_OPTIONS (#109)
The runCli helper spread process.env into the spawned CLI, so a shell whose
NODE_OPTIONS makes node print a startup warning polluted stderr ahead of the
JSON error envelope and broke JSON.parse in the --format json assertion.
Reproduced with NODE_OPTIONS='--require <emit-warning script>': 1 failed /
19 passed before, 20/20 after. The child now drops NODE_OPTIONS and sets
NODE_NO_WARNINGS, matching cli-cache-degraded's handling.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 59c4e4a commit 527dd22
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| |||
0 commit comments