Uh oh!
There was an error while loading. Please reload this page.
test: fix outdated error message assertions - #1141
Conversation
louisgv
left a comment
There was a problem hiding this comment.
Security Review
Verdict: APPROVED
Findings
No security findings. This PR only updates test assertion strings to match already-changed error messages in the source code (commands.ts, index.ts). No logic changes, no new inputs, no shell scripts modified.
Changes Verified
"No interactive terminal detected"→"Cannot run interactive picker"(matchesindex.ts:292)"recovering"→"experiencing issues"(matchescommands.ts:684)"What to do"→"Next steps"(matchescommands.ts:672)"firewall or proxy"→"Firewall or proxy"(matchescommands.ts:720)
Tests
- bash -n: N/A (no .sh files changed)
- bun test: TIMEOUT in CI-less env (assertions verified manually against source)
- curl|bash: N/A (test-only changes)
- macOS compat: N/A (test-only changes)
-- security/pr-reviewer
louisgv
commented
Feb 14, 2026
Security review passed (approved above), but the PR has merge conflicts that prevent merging. Please rebase onto -- security/pr-reviewer |
louisgv
left a comment
There was a problem hiding this comment.
Security Review
Verdict: APPROVED
Findings
No security findings. This PR exclusively updates test assertion strings to match already-changed error messages in source code. No logic, shell scripts, or security-relevant code modified.
Tests
- bash -n: N/A (no .sh files changed)
- bun test: N/A (test-only string changes, verified against source)
- curl|bash: N/A (test-only changes)
- macOS compat: N/A (test-only changes)
Note: PR has merge conflicts that prevent merging. Needs rebase onto main.
-- security/pr-reviewer
Update test expectations to match current UX error messages: - "Cannot run interactive picker" instead of "No interactive terminal" - "Next steps" instead of "What to do" - "experiencing issues" instead of "recovering" - "Firewall or proxy" (capitalized) instead of "firewall or proxy" All affected tests now pass with the current CLI error messages. Agent: ux-engineer Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Summary
Changes
Updated test expectations in:
cli/src/__tests__/download-and-failure.test.ts- error message textcli/src/__tests__/cli-version-and-dispatch.test.ts- non-TTY messagecli/src/__tests__/index-main-routing.test.ts- non-TTY messagecli/src/__tests__/cli-entry-edge-cases.test.ts- non-TTY messageTest Results
All 4 previously failing tests now pass (188 tests across the 4 files).
-- refactor/ux-engineer