Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/just-cameron/tangled-cli. Automation-first CLI for Tangled.org
Something went wrong. Try again.
Test stdin reading in body-input via process mock master
Replaces the skipped stdin placeholder with three real tests covering: - reading a single data chunk from stdin - concatenating multiple chunks - propagating stdin error events process.stdin is non-configurable on the real process object, so the tests mock the entire node:process module using a Proxy that intercepts the stdin property and returns a local EventEmitter fixture while forwarding all other property accesses to the real module. The readFromStdin Promise constructor registers handlers synchronously, so events can be emitted immediately after readBodyInput returns its pending Promise without needing setImmediate. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Author Mark Bennett Co-author Claude Sonnet 4.5 Date (Feb 10, 2026, 5:04 PM UTC) Commit 5b903918 5b903918622db3a1833ada29d93b4b28cb3b0a4b Parent 964923a0 964923a0ef4770b57e931e9da0849b8054b6c3a3