beads/cmd
Jim Wordelman 88e13542e6 test(embedded): split stdout/stderr in all JSON-parsing helpers (be-0ya2oe)
PR #3909 introduced an auto-export warning written to stderr. Tests that
called CombinedOutput() and then parsed the result as JSON would choke
on the warning text mixed into stdout.

Apply the pattern already established in list_embedded_test.go: for every
helper or inline call site that parses JSON or an ID from stdout, capture
stdout and stderr in separate bytes.Buffers and parse only stdout.

Covers 66 test files including duplicates, update, lint, todo, label,
count, swarm, close, list, status, types, find-duplicates, and more.

Closes TestEmbeddedDuplicates/dry_run and TestEmbeddedUpdate/update_json_output
failures from CI run 25967558419 and 25962887732.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 15:37:59 -07:00
..
bd test(embedded): split stdout/stderr in all JSON-parsing helpers (be-0ya2oe) 2026-05-16 15:37:59 -07:00