AI-native design editor. Open-source Figma alternative.
test(engine): stabilize full engine smoke
Danila Poyarkovab700fd8be5e
diff --git a/tests/engine/io/fig/export/worker.test.ts b/tests/engine/io/fig/export/worker.test.tsindex 218e0dcfe..d7d9a67fe 100644--- a/tests/engine/io/fig/export/worker.test.ts+++ b/tests/engine/io/fig/export/worker.test.ts@@ -14,7 +14,7 @@ import { heavy } from '#tests/helpers/test-utils'setDefaultTimeout(30_000)-const FIXTURES = resolve(import.meta.dir, '../fixtures')+const FIXTURES = resolve(import.meta.dir, '../../../../fixtures')describe('fig export compression', () => {test('compressFigDataSync produces valid zip', async () => {diff --git a/tests/engine/kiwi/serialize-fixes/line/height.test.ts b/tests/engine/kiwi/serialize-fixes/line/height.test.tsindex aafbaa4a0..a438493dc 100644--- a/tests/engine/kiwi/serialize-fixes/line/height.test.ts+++ b/tests/engine/kiwi/serialize-fixes/line/height.test.ts@@ -26,7 +26,7 @@ describe('Fix 4: text lineHeight serialization', () => {expect(changes[0].lineHeight).toEqual({ value: 24, units: 'PIXELS' })})- test('text node without lineHeight defaults to ceil(fontSize * 1.2)', () => {+ test('text node without lineHeight omits lineHeight', () => {const graph = new SceneGraph()const node = graph.createNode('TEXT', pageId(graph), {name: 'DefaultLH',@@ -38,31 +38,10 @@ describe('Fix 4: text lineHeight serialization', () => {fontFamily: 'Inter',fontWeight: 400,fontSize: 16- // lineHeight not set — defaults to null})const changes = toKiwi(node, graph) as Record<string, unknown>[]- // ceil(16 * 1.2) = ceil(19.2) = 20- expect(changes[0].lineHeight).toEqual({ value: 20, units: 'PIXELS' })- })-- test('lineHeight default for odd fontSize', () => {- const graph = new SceneGraph()- const node = graph.createNode('TEXT', pageId(graph), {- name: 'OddSize',- x: 0,- y: 0,- width: 100,- height: 20,- text: 'Hello',- fontFamily: 'Inter',- fontWeight: 400,- fontSize: 14- })-- const changes = toKiwi(node, graph) as Record<string, unknown>[]- // ceil(14 * 1.2) = ceil(16.8) = 17- expect(changes[0].lineHeight).toEqual({ value: 17, units: 'PIXELS' })+ expect(changes[0].lineHeight).toBeUndefined()})test('lineHeight survives roundtrip through export/parse', async () => {diff --git a/tests/engine/layout/auto-layout/text/measurement.test.ts b/tests/engine/layout/auto-layout/text/measurement.test.tsindex aeccea62d..86846b558 100644--- a/tests/engine/layout/auto-layout/text/measurement.test.ts+++ b/tests/engine/layout/auto-layout/text/measurement.test.ts@@ -76,6 +76,7 @@ describe('text measurement', () => {// an older layout implementation. Post-layout, left-aligned HUG content retains x=8.expect(visibleToolbar.x).toBe(8)+ setTextMeasurer(null)computeAllLayouts(graph, graph.getPages()[0].id)expect(graph.getNode(visibleToolbar.id)?.x).toBe(8)