You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6083b1d
Browse filesBrowse the repository at this point in the historyBrowse files
test: route every stdout/stderr write swap through stream-capture (#3473)
Makes stream-capture.ts the one place that changes process.stdout.write
or process.stderr.write. Migrate the remaining hand-rolled swaps: the
daemon-http-fixture captureStderr (its restore assigned a bound copy,
leaving an own-property shadow on the real stream for the rest of the
file) with its callers in daemon-client-lifecycle and
daemon-client-newer-daemon, the stdout captures in generic and
screenshot, the scripts lanes (check-affected, coverage-changed,
coverage-crap, fuzz worker, help-conformance sample producers), and the
first-round consumers updated to the slimmed surface. The seven
vi.spyOn(process.stdout|stderr, 'write') sites move too: a spyOn write
fake has the same leak shape as the assignment swaps.
Shrink the helper surface per review: beginStdoutCapture and
beginStderrCapture stay the primitives; withCapturedStderr gains an
interactive option and absorbs withInteractiveStderr/Async;
withStreamTtyAsync (no caller outside its own test) is gone; the fuzz
worker's full-life suppression becomes the discard option. After this,
no test changes process.stdout/stderr.write by assignment or spy.
Covers #3421
0 commit comments