import type { ReactNode } from 'react' import { render, screen } from '@testing-library/react' import { CloudAnalyticsLayoutBoundary } from '../cloud-analytics-layout-boundary' const mockState = vi.hoisted(() => ({ layoutSegments: ['(commonLayout)', 'agents'], })) vi.mock('@/next/navigation', () => ({ useSelectedLayoutSegments: () => mockState.layoutSegments, })) vi.mock('@/next/script', () => ({ default: ({ id, strategy, src, nonce, children, }: { id?: string strategy?: string src?: string nonce?: string children?: ReactNode }) => (