The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): give the profiles-page profile mock the $showAllProfiles atom layout.ts reads
teknium1b6d96ccc7405
diff --git a/apps/desktop/src/app/profiles/index.test.tsx b/apps/desktop/src/app/profiles/index.test.tsxindex 939af89e0fe..95518fdb0b2 100644--- a/apps/desktop/src/app/profiles/index.test.tsx+++ b/apps/desktop/src/app/profiles/index.test.tsx@@ -44,18 +44,26 @@ vi.mock('@/store/gateway', () => ({retireLocalProfileGateways: vi.fn()}))-const { $activeGatewayProfile: activeGateway, $profileColors } = vi.hoisted(() => {+const {+ $activeGatewayProfile: activeGateway,+ $profileColors,+ $showAllProfiles+} = vi.hoisted(() => {const { atom } = require('nanostores') as typeof Nanostoresreturn {$activeGatewayProfile: atom<string>('default'),- $profileColors: atom<Record<string, string>>({})+ $profileColors: atom<Record<string, string>>({}),+ $showAllProfiles: atom<boolean>(false)}})vi.mock('@/store/profile', () => ({$activeGatewayProfile: activeGateway,$profileColors,+ // `session-states` -> `preview` -> `layout` reaches this mock now that the+ // right rail is scoped per profile; layout.ts derives its grouping from it.+ $showAllProfiles,normalizeProfileKey: (name: null | string | undefined) => (name ?? '').trim() || 'default',profileLabel: (profile: { display_name?: string; name: string }) =>(profile.display_name ?? '').trim() || profile.name,