mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-22 16:25:58 +00:00
test(desktop): update session-row mocks for restored sessionColorById
This commit is contained in:
parent
91ac18c915
commit
ab0c131285
1 changed files with 8 additions and 1 deletions
|
|
@ -44,7 +44,14 @@ vi.mock('@/lib/session-source', () => ({
|
|||
vi.mock('@/lib/time', () => ({ coarseElapsed: () => ({ unit: 'minute' as const, value: 5 }) }))
|
||||
|
||||
vi.mock('@/store/composer-status', () => ({ $backgroundRunningSessionIds: atom<string[]>([]) }))
|
||||
vi.mock('@/store/session', () => ({ $unreadFinishedSessionIds: atom<string[]>([]) }))
|
||||
vi.mock('@/store/session', () => ({
|
||||
$sessions: atom<Record<string, unknown>>({}),
|
||||
$unreadFinishedSessionIds: atom<string[]>([])
|
||||
}))
|
||||
// session-row.tsx reads the idle-dot project color from this derived store
|
||||
// directly — mock it here rather than letting it recompute from $sessions/
|
||||
// $projects, since this file only exercises the Tip wrapping, not coloring.
|
||||
vi.mock('@/store/session-color', () => ({ $sessionColorById: atom<Record<string, string>>({}) }))
|
||||
vi.mock('@/store/session-states', () => ({
|
||||
$attentionSessionIds: atom<string[]>([]),
|
||||
openSessionTile: vi.fn()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue