Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,18 @@
|
||||
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("<Suspense fallback=");
|
||||
expect(boundarySource).not.toContain("@monaco-editor/react");
|
||||
});
|
||||
|
||||
it("keeps the Monaco package import isolated to the client editor", () => {
|
||||
const clientSource = readRepoFile("apps/web/app/components/editors/MonacoEditor.client.tsx");
|
||||
|
||||
expect(clientSource).toContain('from "@monaco-editor/react"');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user