From 1292eb017ca1c71ac4442bc36d988ae5bedba6a1 Mon Sep 17 00:00:00 2001 From: mkorwel Date: Thu, 16 Apr 2026 18:05:07 +0000 Subject: [PATCH] test(cli): update snapshots and revert sequential in tests --- packages/cli/src/test-utils/render.test.tsx | 2 +- .../src/ui/__snapshots__/App.test.tsx.snap | 162 ++++++++++++++++-- 2 files changed, 149 insertions(+), 15 deletions(-) diff --git a/packages/cli/src/test-utils/render.test.tsx b/packages/cli/src/test-utils/render.test.tsx index 1940112171..229dc7674b 100644 --- a/packages/cli/src/test-utils/render.test.tsx +++ b/packages/cli/src/test-utils/render.test.tsx @@ -10,7 +10,7 @@ import { Text } from 'ink'; import { renderHook, render } from './render.js'; import { waitFor } from './async.js'; -describe.sequential('render', () => { +describe('render', () => { it('should render a component', async () => { const { lastFrame, unmount } = await render(Hello World); expect(lastFrame()).toBe('Hello World\n'); diff --git a/packages/cli/src/ui/__snapshots__/App.test.tsx.snap b/packages/cli/src/ui/__snapshots__/App.test.tsx.snap index 611f2e0908..e1683de18b 100644 --- a/packages/cli/src/ui/__snapshots__/App.test.tsx.snap +++ b/packages/cli/src/ui/__snapshots__/App.test.tsx.snap @@ -36,6 +36,45 @@ Tips for getting started: + +Notifications + +Composer + + ▝▜▄ ▗█▀▀▜▙▝█▛▀▀▌▜██▖▟██▘▜█▘▜██▖▝█▛▝█▛ + ▝▜▄ █▌ █▙▟ ▐█▝█▛▐█ ▐█ ▐█▝█▖█▌ █▌ + ▗▟▀ ▜▙ ▝█▛ █▌▝ ▖▐█ ▐█ ▐█ ▐█ ▝██▌ █▌ + ▝▀ ▀▀▀▀▘▝▀▀▀▀▘▀▀▘ ▀▀▘▀▀▘▀▀▘ ▝▀▀▝▀▀ + + Gemini CLI v1.2.3 + + + +Tips for getting started: +1. Create GEMINI.md files to customize your interactions +2. /help for more information +3. Ask coding questions, edit code or run commands +4. Be specific for the best results + + + + + + + + + + + + + + + + + + + + Notifications @@ -56,6 +95,23 @@ Footer +Tips for getting started: +1. Create GEMINI.md files to customize your interactions +2. /help for more information +3. Ask coding questions, edit code or run commands +4. Be specific for the best results +ComposerNotifications +Footer + + ▝▜▄ ▗█▀▀▜▙▝█▛▀▀▌▜██▖▟██▘▜█▘▜██▖▝█▛▝█▛ + ▝▜▄ █▌ █▙▟ ▐█▝█▛▐█ ▐█ ▐█▝█▖█▌ █▌ + ▗▟▀ ▜▙ ▝█▛ █▌▝ ▖▐█ ▐█ ▐█ ▐█ ▝██▌ █▌ + ▝▀ ▀▀▀▀▘▝▀▀▀▀▘▀▀▘ ▀▀▘▀▀▘▀▀▘ ▝▀▀▝▀▀ + + Gemini CLI v1.2.3 + + + Tips for getting started: 1. Create GEMINI.md files to customize your interactions 2. /help for more information @@ -93,6 +149,45 @@ exports[`App > Snapshots > renders with dialogs visible 1`] = ` + + + + + + + + + +Notifications + +DialogManager + + ▝▜▄ ▗█▀▀▜▙▝█▛▀▀▌▜██▖▟██▘▜█▘▜██▖▝█▛▝█▛ + ▝▜▄ █▌ █▙▟ ▐█▝█▛▐█ ▐█ ▐█▝█▖█▌ █▌ + ▗▟▀ ▜▙ ▝█▛ █▌▝ ▖▐█ ▐█ ▐█ ▐█ ▝██▌ █▌ + ▝▀ ▀▀▀▀▘▝▀▀▀▀▘▀▀▘ ▀▀▘▀▀▘▀▀▘ ▝▀▀▝▀▀ + + Gemini CLI v1.2.3 + + + + + + + + + + + + + + + + + + + + @@ -125,20 +220,59 @@ Tips for getting started: 3. Ask coding questions, edit code or run commands 4. Be specific for the best results HistoryItemDisplay -╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ Action Required │ -│ │ -│ ? ls list directory │ -│ │ -│ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │ -│ │ ls │ │ -│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ -│ Allow execution of [ls]? │ -│ │ -│ ● 1. Allow once │ -│ 2. Allow for this session │ -│ 3. No, suggest changes (esc) │ -╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─────────────────────────────────────────────────────────────────────────────── +│ Action Required +│ +│ ? ls list directory +│ +│ ╭───────────────────────────────────────────────────────────────────────────── +│ │ ls +│ ╰───────────────────────────────────────────────────────────────────────────── +│ Allow execution of [ls]? +│ +│ ● 1. Allow once +│ 2. Allow for this session +│ 3. No, suggest changes (esc) +╰─────────────────────────────────────────────────────────────────────────────── + + + + + + +Notifications + +Composer + + ▝▜▄ ▗█▀▀▜▙▝█▛▀▀▌▜██▖▟██▘▜█▘▜██▖▝█▛▝█▛ + ▝▜▄ █▌ █▙▟ ▐█▝█▛▐█ ▐█ ▐█▝█▖█▌ █▌ + ▗▟▀ ▜▙ ▝█▛ █▌▝ ▖▐█ ▐█ ▐█ ▐█ ▝██▌ █▌ + ▝▀ ▀▀▀▀▘▝▀▀▀▀▘▀▀▘ ▀▀▘▀▀▘▀▀▘ ▝▀▀▝▀▀ + + Gemini CLI v1.2.3 + + + +Tips for getting started: +1. Create GEMINI.md files to customize your interactions +2. /help for more information +3. Ask coding questions, edit code or run commands +4. Be specific for the best results +HistoryItemDisplay +╭─────────────────────────────────────────────────────────────────────────────── +│ Action Required +│ +│ ? ls list directory +│ +│ ╭───────────────────────────────────────────────────────────────────────────── +│ │ ls +│ ╰───────────────────────────────────────────────────────────────────────────── +│ Allow execution of [ls]? +│ +│ ● 1. Allow once +│ 2. Allow for this session +│ 3. No, suggest changes (esc) +╰───────────────────────────────────────────────────────────────────────────────