import { describe, expect, it } from "vitest"; import { readRepoFile } from "~/utils/testing/repoPaths"; describe("Lazy Monaco editor boundary", () => { it("keeps Monaco behind a lazy client import and renders a fallback", () => { const boundarySource = readRepoFile("apps/web/app/components/editors/MonacoEditor.tsx"); expect(boundarySource).toContain('lazy(() => import("./MonacoEditor.client"))'); expect(boundarySource).toContain(" { const clientSource = readRepoFile("apps/web/app/components/editors/MonacoEditor.client.tsx"); expect(clientSource).toContain('from "@monaco-editor/react"'); }); });