Skip to content

AI-native design editor. Open-source Figma alternative.

Fix fileRoot test: await async exportFigFile

Danila Poyarkov601dc85aa82e
diff --git a/tests/engine/mcp-server.test.ts b/tests/engine/mcp-server.test.ts
index 216089c52..29f037f89 100644
--- a/tests/engine/mcp-server.test.ts
+++ b/tests/engine/mcp-server.test.ts
@@ -296,7 +296,7 @@ describe('MCP server', () => {
const outsidePath = join(tmpdir(), `outside-${Date.now()}.fig`)
const graph = new SceneGraph()
- const bytes = exportFigFile(graph)
+ const bytes = await exportFigFile(graph)
await writeFile(insidePath, new Uint8Array(bytes))
const custom = await createLinkedClient({ fileRoot: rootDir })