The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(test): update test imports to use correct module paths
Steven Enamakel5646b5a2e96c
diff --git a/app/src/components/layout/shell/CollapsedNavRail.test.tsx b/app/src/components/layout/shell/CollapsedNavRail.test.tsxindex a3d23885c5..a98fbedae4 100644--- a/app/src/components/layout/shell/CollapsedNavRail.test.tsx+++ b/app/src/components/layout/shell/CollapsedNavRail.test.tsx@@ -20,11 +20,11 @@ vi.mock('../../../services/analytics', () => ({ trackEvent: vi.fn() }));describe('CollapsedNavRail', () => {beforeEach(() => vi.clearAllMocks());- it('renders Home, Keyboard Shortcuts, and every primary nav destination as icon buttons', () => {+ it('renders Home, Discord, and every primary nav destination as icon buttons', () => {renderWithProviders(<CollapsedNavRail />, { initialEntries: ['/home'] });for (const key of ['nav.home',- 'shortcuts.title',+ 'nav.discord','nav.chat','nav.brain','nav.flows',@@ -47,19 +47,17 @@ describe('CollapsedNavRail', () => {expect(screen.getByRole('button', { name: 'nav.chat' }).dataset.active).toBe('false');});- it('shortcuts button opens the keyboard-shortcuts help directory', () => {- const runAction = vi.spyOn(registry, 'runAction').mockReturnValue(true);+ it('Discord button opens the community invite in the browser', () => {renderWithProviders(<CollapsedNavRail />, { initialEntries: ['/home'] });- fireEvent.click(screen.getByRole('button', { name: 'shortcuts.title' }));- expect(runAction).toHaveBeenCalledWith('meta.keyboard-shortcuts');- runAction.mockRestore();+ fireEvent.click(screen.getByRole('button', { name: 'nav.discord' }));+ expect(openUrl).toHaveBeenCalledWith('https://discord.tinyhumans.ai');});- it('shortcuts button has correct data-analytics-id', () => {+ it('Discord button has correct data-analytics-id', () => {renderWithProviders(<CollapsedNavRail />, { initialEntries: ['/home'] });- expect(screen.getByRole('button', { name: 'shortcuts.title' })).toHaveAttribute(+ expect(screen.getByRole('button', { name: 'nav.discord' })).toHaveAttribute('data-analytics-id',- 'collapsed-rail-shortcuts'+ 'collapsed-rail-discord');});diff --git a/app/src/components/layout/shell/SidebarHeader.test.tsx b/app/src/components/layout/shell/SidebarHeader.test.tsxindex 0b44f71eae..2cf86c7f06 100644--- a/app/src/components/layout/shell/SidebarHeader.test.tsx+++ b/app/src/components/layout/shell/SidebarHeader.test.tsx@@ -13,6 +13,8 @@ vi.mock('react-router-dom', async importOriginal => {return { ...actual, useNavigate: () => mockNavigate };});vi.mock('./RootShellLayout', () => ({ useRootSidebar: () => ({ hide: mockHide }) }));+const openUrl = vi.fn().mockResolvedValue(undefined);+vi.mock('../../../utils/openUrl', () => ({ openUrl: (...args: unknown[]) => openUrl(...args) }));// Return i18n keys verbatim so queries don't depend on locale.vi.mock('../../../lib/i18n/I18nContext', () => ({ useT: () => ({ t: (k: string) => k }) }));