import { render,screen } from '@testing-library/react'; import { MemoryRouter } from 'react-router-dom'; import { it,expect,vi } from 'vitest'; import Sidebar from './Sidebar'; vi.mock('../services/api',()=>({default:{get:vi.fn().mockResolvedValue({data:{success:true,data:{}}})}})); it('exposes command center inside existing authenticated navigation',async()=>{ render(); expect(await screen.findByRole('link',{name:'Orchestration command center'})).toHaveAttribute('href','/orchestration'); });