diff --git a/packages/cli/src/ui/components/shared/Card.test.tsx b/packages/cli/src/ui/components/shared/Card.test.tsx index 82a15a87ee..841338805c 100644 --- a/packages/cli/src/ui/components/shared/Card.test.tsx +++ b/packages/cli/src/ui/components/shared/Card.test.tsx @@ -58,9 +58,6 @@ describe('Card', () => { const output = lastFrame(); - // eslint-disable-next-line no-console - console.log(output); - expect(output).toMatchSnapshot(); }, ); diff --git a/packages/cli/src/ui/components/shared/__snapshots__/Card.test.tsx.snap b/packages/cli/src/ui/components/shared/__snapshots__/Card.test.tsx.snap new file mode 100644 index 0000000000..c8052adae9 --- /dev/null +++ b/packages/cli/src/ui/components/shared/__snapshots__/Card.test.tsx.snap @@ -0,0 +1,38 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`Card > renders a 'confirmation' card with prefix=true 1`] = ` +"╭ ? Shell node -v && which gemini ─────────────────────────────────────────────────────────────────╮ +│ ls /usr/local/bin | grep 'xattr' │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ +" +`; + +exports[`Card > renders a 'error' card with prefix=true 1`] = ` +"╭ x Error 429 You exceeded your current quota ─────────────────────────────────────────────────────╮ +│ Go to https://aistudio.google.com/apikey to upgrade your quota tier, or submit a quota increase │ +│ request in https://ai.google.dev/gemini-api/docs/rate-limits │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ +" +`; + +exports[`Card > renders a 'information' card with prefix=true 1`] = ` +"╭ ℹ Delegate to agent Delegating to agent 'cli_help' ──────────────────────────────────────────────╮ +│ 🤖💭 Execution limit reached (ERROR_NO_COMPLETE_TASK_CALL). Attempting one final recovery turn │ +│ with a grace period. │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ +" +`; + +exports[`Card > renders a 'success' card with prefix=true 1`] = ` +"╭ ✓ ReadFolder /usr/local/bin ─────────────────────────────────────────────────────────────────────╮ +│ Listed 39 item(s). │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ +" +`; + +exports[`Card > renders a 'warning' card with prefix=true 1`] = ` +"╭ ⚠ Gemini CLI update available 0.26.0 → 0.27.0 ───────────────────────────────────────────────────╮ +│ Installed via Homebrew. Please update with "brew upgrade gemini-cli". │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ +" +`;