Skip to content

fix(tests): update E2E exit code assertions for usage errors#567

Merged
jackwener merged 1 commit intomainfrom
fix/e2e-exit-code-assertions
Mar 28, 2026
Merged

fix(tests): update E2E exit code assertions for usage errors#567
jackwener merged 1 commit intomainfrom
fix/e2e-exit-code-assertions

Conversation

@jackwener
Copy link
Copy Markdown
Owner

Fixes CI failures caused by the exit-codes feature (#564).

Argument/usage errors now correctly return exit code 2 (EX_USAGE). Two E2E tests were still asserting exit code 1 for these cases:

  • unknown command shows error (management.test.ts)
  • plugin update without name or --all shows error (plugin-management.test.ts)

Argument/usage errors now correctly exit with code 2 (EX_USAGE) since
the exit-codes feature landed. Update the two affected E2E assertions:
- unknown command → 2 (usage error, not generic failure)
- plugin update without args → 2 (ArgumentError)
@jackwener jackwener merged commit bcaf612 into main Mar 28, 2026
11 checks passed
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