beads/cmd/bd/testdata/delete.txt
beads/crew/lizzy 10b1af3f9b test: add error case and missing command script tests (dolt-test-evu)
Add 12 new script tests covering error cases for existing commands
(create, update, show, close, dep, delete) and missing command
coverage (comments, label, search, config, lint, delete). All new
tests pass; 6 pre-existing script test failures remain unchanged.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 18:47:41 -08:00

19 lines
466 B
Text

# Test bd delete command
bd init --prefix test
# Create an issue
bd create 'Issue to delete'
cp stdout issue.txt
exec sh -c 'grep -oE "test-[a-z0-9]+" issue.txt > id.txt'
# Preview delete (no --force) - should show preview
exec sh -c 'bd delete $(cat id.txt)'
stdout 'DELETE PREVIEW'
# Actually delete
exec sh -c 'bd delete $(cat id.txt) --force'
# Verify it's gone - show should print error to stderr
exec sh -c 'bd show $(cat id.txt)'
stderr 'no issue found'