# Test bd init command
bd init --prefix test
stdout 'initialized successfully'
exists .beads/beads.db
exists .beads/metadata.json
exists .beads/.gitignore
grep '^\*\.db$' .beads/.gitignore
grep '^\*\.db-journal$' .beads/.gitignore
grep '^\*\.db-wal$' .beads/.gitignore
grep '^\*\.db-shm$' .beads/.gitignore
grep '^daemon\.log$' .beads/.gitignore
grep '^daemon\.pid$' .beads/.gitignore
grep '^bd\.sock$' .beads/.gitignore
grep '^!\*\.jsonl$' .beads/.gitignore
grep '^!metadata\.json$' .beads/.gitignore
grep '^!config\.json$' .beads/.gitignore
