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 2228859
Browse filesBrowse the repository at this point in the historyBrowse files
test(cli): attribute the stdout-purity e2e probes to the serve child (#16462)
`serve-stdio-stdout-purity.e2e.test.ts` was the fifth and last file in the
family that fetched a spawned `os serve` with no child-lifecycle attribution.
Its `boot()` handler for `child.on('exit')` returns early on `if (settled)
return`, so it feeds the readiness promise only: a death after readiness was
invisible to it, and the two `beforeAll` probes reached vitest as a bare
`TypeError: fetch failed` with no exit code, no stdout and no stderr.
Route both probes — `POST auth/sign-in/email` and `POST keys` — through the
existing `probeThroughChild()` helper, the same shape the four siblings already
use. The body read goes inside the thunk (a connection torn down mid-body
rejects out of `res.json()`, not out of `fetch()`) and the assertions stay
outside it (the guard reads any throw as a transport failure).
No product change and no new export: test-only, through a helper already on
`main` with its own pin at `serve-probe-child-attribution.test.ts`.
Claude-Session: https://claude.ai/code/session_01D47qPfEWVPmhguWgBZCi5N
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments