@@ -27,23 +27,58 @@ bun test src/frontend # Frontend tests only
2727bun test --watch # Watch mode
2828```
2929
30- ** Current:** 161 tests across 14 files
30+ ** Current:** 469 tests across 44 files
3131
3232## Test Files
3333
3434| File | What it covers |
3535| ---| ---|
36+ | ** Server** | |
3637| ` src/server/parser/session.test.ts ` | ` buildTurns() ` , ` extractSubAgentMap() ` , contentBlocks ordering, plan/impl linking |
3738| ` src/server/parser/command-message.test.ts ` | ` parseCommandMessage() ` , ` cleanCommandMessage() ` |
3839| ` src/server/parser/claude-dir.test.ts ` | Session discovery, ` classifySessionTypes() ` , slug extraction |
3940| ` src/server/parser/stats.test.ts ` | ` scanStats() ` aggregate statistics computation |
41+ | ` src/server/api/version.test.ts ` | Version API handler |
42+ | ` src/server/cli.test.ts ` | CLI arg parsing, help text |
43+ | ` src/server/config.test.ts ` | Projects directory configuration |
44+ | ` src/server/http.test.ts ` | HTTP server, route matching, static files |
45+ | ` src/server/version.test.ts ` | Version info extraction |
46+ | ** Shared** | |
47+ | ` src/shared/content-blocks.test.ts ` | ContentBlock grouping for presentation steps |
48+ | ** Frontend — Components** | |
4049| ` src/frontend/components/message/UserMessage.test.tsx ` | Regular text, commands, status notices, attachments, plan/impl links |
4150| ` src/frontend/components/message/AssistantMessage.test.tsx ` | Thinking, text, tool calls, model display, token usage |
4251| ` src/frontend/components/message/ToolCall.test.tsx ` | ` getToolSummary() ` for all tool types, MCP parsing |
52+ | ` src/frontend/components/message/SmartToolOutput.test.tsx ` | Tool output format detection, image rendering |
53+ | ` src/frontend/components/message/BashToolContent.test.tsx ` | Bash tool input/output display |
54+ | ` src/frontend/components/message/MessageList.test.tsx ` | Turn-to-component mapping |
55+ | ` src/frontend/components/message/ThinkingBlock.test.tsx ` | Thinking block rendering |
56+ | ` src/frontend/components/message/SubAgentView.test.tsx ` | Sub-agent inline display |
4357| ` src/frontend/components/dashboard/DashboardStats.test.tsx ` | Dashboard rendering, loading state, model display |
58+ | ` src/frontend/components/layout/Header.test.tsx ` | Header bar rendering |
59+ | ` src/frontend/components/layout/Layout.test.tsx ` | Layout wrapper |
60+ | ` src/frontend/components/layout/Sidebar.test.tsx ` | Sidebar rendering |
61+ | ` src/frontend/components/project/ProjectList.test.tsx ` | Project list rendering |
62+ | ` src/frontend/components/project/SessionList.test.tsx ` | Session list rendering |
63+ | ` src/frontend/components/project/HiddenProjectList.test.tsx ` | Hidden projects management |
64+ | ` src/frontend/components/session/SessionView.test.tsx ` | Session view rendering |
65+ | ` src/frontend/components/session/SessionPresentation.test.tsx ` | Session presentation mode |
66+ | ` src/frontend/components/session/PresentationShell.test.tsx ` | Presentation shell wrapper |
67+ | ` src/frontend/components/session/SubAgentPresentation.test.tsx ` | Sub-agent presentation mode |
68+ | ` src/frontend/components/search/SearchModal.test.tsx ` | Global search modal |
69+ | ` src/frontend/components/ui/CodeBlock.test.tsx ` | Syntax-highlighted code |
70+ | ` src/frontend/components/ui/CollapsibleSection.test.tsx ` | Expand/collapse wrapper |
71+ | ` src/frontend/components/ui/DiffView.test.tsx ` | Diff view rendering |
72+ | ` src/frontend/components/ui/ErrorBoundary.test.tsx ` | Error boundary with retry |
73+ | ` src/frontend/components/ui/MarkdownRenderer.test.tsx ` | Markdown rendering |
74+ | ** Frontend — Hooks** | |
75+ | ` src/frontend/hooks/useFetch.test.ts ` | Generic data fetching hook |
4476| ` src/frontend/hooks/useHiddenProjects.test.ts ` | ` useHiddenProjects ` hook: hide, unhide, localStorage persistence |
77+ | ` src/frontend/hooks/useKeyboard.test.tsx ` | Keyboard event handling |
4578| ` src/frontend/hooks/usePresentationMode.test.ts ` | Step counting, navigation, turn boundaries, visibility |
4679| ` src/frontend/hooks/useTheme.test.ts ` | Theme cycling, font size, localStorage persistence |
80+ | ** Frontend — Utils** | |
81+ | ` src/frontend/utils/format-detector.test.ts ` | Output format auto-detection |
4782| ` src/frontend/utils/time.test.ts ` | Relative time strings |
4883| ` src/frontend/utils/model.test.ts ` | Model name shortening (Opus/Sonnet/Haiku) |
4984| ` src/frontend/utils/project.test.ts ` | Project path utilities |
0 commit comments