summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/SessionSummaryDisplay.test.tsx
diff options
context:
space:
mode:
authorAbhi <[email protected]>2025-06-30 20:28:49 -0400
committerGitHub <[email protected]>2025-07-01 00:28:49 +0000
commitf91927569c6980a3884674f5f1ab581fcb00f2ce (patch)
tree5f551cb4d2c5411142c7c3db43d6a5f7e4458825 /packages/cli/src/ui/components/SessionSummaryDisplay.test.tsx
parent3587054d32372874a4e067ae050f861ad1cec2b4 (diff)
refactor(ui): revamp exit stats display (#2771)
Diffstat (limited to 'packages/cli/src/ui/components/SessionSummaryDisplay.test.tsx')
-rw-r--r--packages/cli/src/ui/components/SessionSummaryDisplay.test.tsx33
1 files changed, 2 insertions, 31 deletions
diff --git a/packages/cli/src/ui/components/SessionSummaryDisplay.test.tsx b/packages/cli/src/ui/components/SessionSummaryDisplay.test.tsx
index afb822e5..f3c0764e 100644
--- a/packages/cli/src/ui/components/SessionSummaryDisplay.test.tsx
+++ b/packages/cli/src/ui/components/SessionSummaryDisplay.test.tsx
@@ -33,7 +33,7 @@ const renderWithMockedStats = (metrics: SessionMetrics) => {
};
describe('<SessionSummaryDisplay />', () => {
- it('correctly sums and displays stats from multiple models', () => {
+ it('renders the summary display with a title', () => {
const metrics: SessionMetrics = {
models: {
'gemini-2.5-pro': {
@@ -47,17 +47,6 @@ describe('<SessionSummaryDisplay />', () => {
tool: 200,
},
},
- 'gemini-2.5-flash': {
- api: { totalRequests: 5, totalErrors: 0, totalLatencyMs: 12345 },
- tokens: {
- prompt: 500,
- candidates: 1000,
- total: 1500,
- cached: 100,
- thoughts: 50,
- tool: 20,
- },
- },
},
tools: {
totalCalls: 0,
@@ -72,25 +61,7 @@ describe('<SessionSummaryDisplay />', () => {
const { lastFrame } = renderWithMockedStats(metrics);
const output = lastFrame();
- // Verify totals are summed correctly
- expect(output).toContain('Cumulative Stats (15 API calls)');
+ expect(output).toContain('Agent powering down. Goodbye!');
expect(output).toMatchSnapshot();
});
-
- it('renders zero state correctly', () => {
- const zeroMetrics: SessionMetrics = {
- models: {},
- tools: {
- totalCalls: 0,
- totalSuccess: 0,
- totalFail: 0,
- totalDurationMs: 0,
- totalDecisions: { accept: 0, reject: 0, modify: 0 },
- byName: {},
- },
- };
-
- const { lastFrame } = renderWithMockedStats(zeroMetrics);
- expect(lastFrame()).toMatchSnapshot();
- });
});