Skip to content

test: fix --help assertion under colored CI output - #12

Merged
huhn511 merged 1 commit into
mainfrom
fix/help-test-color
Jun 7, 2026
Merged

huhn511 merged 1 commit into
mainfrom
fix/help-test-color

Conversation

@huhn511

@huhn511 huhn511 commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

test/update.test.mjs asserted the bare command name update in mind --help, but CI runs with FORCE_COLOR so citty decorates names with ANSI/backticks → the test has been red on main since 2026-06-06. Strip ANSI and allow optional backticks before matching. No production code change.

🤖 Generated with Claude Code

CI runs with FORCE_COLOR, so citty decorates command names (ANSI and/or
backticks); the bare-name regex only matched uncolored output and failed
in CI. Strip ANSI and allow optional backticks before matching.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@huhn511
huhn511 merged commit 1376f7a into main Jun 7, 2026
1 check passed
@huhn511
huhn511 deleted the fix/help-test-color branch June 7, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant