summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/__snapshots__/StatsDisplay.test.tsx.snap
diff options
context:
space:
mode:
authorAbhi <[email protected]>2025-06-10 15:59:52 -0400
committerGitHub <[email protected]>2025-06-10 15:59:52 -0400
commit9c3f34890f220456235303498736938156d7fefe (patch)
tree463b910e7e4bac945e24748fe19bbb5875d7c8eb /packages/cli/src/ui/components/__snapshots__/StatsDisplay.test.tsx.snap
parent04e2fe0bff1dc59d90dd81374a652cccc39dc625 (diff)
feat: Add UI for /stats slash command (#883)
Diffstat (limited to 'packages/cli/src/ui/components/__snapshots__/StatsDisplay.test.tsx.snap')
-rw-r--r--packages/cli/src/ui/components/__snapshots__/StatsDisplay.test.tsx.snap43
1 files changed, 43 insertions, 0 deletions
diff --git a/packages/cli/src/ui/components/__snapshots__/StatsDisplay.test.tsx.snap b/packages/cli/src/ui/components/__snapshots__/StatsDisplay.test.tsx.snap
new file mode 100644
index 00000000..f8fa3d4f
--- /dev/null
+++ b/packages/cli/src/ui/components/__snapshots__/StatsDisplay.test.tsx.snap
@@ -0,0 +1,43 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`<StatsDisplay /> > renders correctly with given stats and duration 1`] = `
+"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
+│ │
+│ Stats │
+│ │
+│ Last Turn Cumulative (10 Turns) │
+│ │
+│ Input Tokens 100 Input Tokens 1,000 │
+│ Output Tokens 200 Output Tokens 2,000 │
+│ Tool Use Tokens 20 Tool Use Tokens 200 │
+│ Thoughts Tokens 30 Thoughts Tokens 300 │
+│ Cached Tokens 50 Cached Tokens 500 (14.3%) │
+│ ───────────────────────────────────────────── ───────────────────────────────────────────── │
+│ Total Tokens 350 Total Tokens 3,500 │
+│ │
+│ Turn Duration (API) 1.2s Total duration (API) 50.2s │
+│ Total duration (wall) 1h 23m 45s │
+│ │
+╰──────────────────────────────────────────────────────────────────────────────────────────────────╯"
+`;
+
+exports[`<StatsDisplay /> > renders zero state correctly 1`] = `
+"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
+│ │
+│ Stats │
+│ │
+│ Last Turn Cumulative (0 Turns) │
+│ │
+│ Input Tokens 0 Input Tokens 0 │
+│ Output Tokens 0 Output Tokens 0 │
+│ Tool Use Tokens 0 Tool Use Tokens 0 │
+│ Thoughts Tokens 0 Thoughts Tokens 0 │
+│ Cached Tokens 0 Cached Tokens 0 │
+│ ───────────────────────────────────────────── ───────────────────────────────────────────── │
+│ Total Tokens 0 Total Tokens 0 │
+│ │
+│ Turn Duration (API) 0s Total duration (API) 0s │
+│ Total duration (wall) 0s │
+│ │
+╰──────────────────────────────────────────────────────────────────────────────────────────────────╯"
+`;