import { describe, expect, it } from 'vitest'; // `?raw` gives us the exact Svelte source for a real regression check // (ProjectPage used to wrap a second , doubling the sidebar). // Type support comes from vite/client's `*?raw` module declaration. import projectPageSource from '../pages/ProjectPage.svelte?raw'; describe('single layout shell', () => { it('ProjectPage does not nest its own Layout', () => { const src: string = projectPageSource as unknown as string; expect(src).not.toMatch(/import\s+Layout/); expect(src).not.toMatch(/