AI-native design editor. Open-source Figma alternative.
test: move prefixed splits into domain folders
Danila Poyarkovaad26b535ee6
diff --git a/lint/plugin.js b/lint/plugin.jsindex 20e00108d..183d0e2cf 100644--- a/lint/plugin.js+++ b/lint/plugin.js@@ -1167,6 +1167,20 @@ const noTopLevelPrefixedTestFiles = createProgramFilenameRule({}})+const noSiblingDomainPrefixedTestFiles = createProgramFilenameRule({+ description: 'Disallow test files that repeat an existing sibling domain folder as a filename prefix',+ check(file) {+ const match = file.match(/^(.*\/tests\/(?:engine|e2e)\/.+\/)([^/]+)-[^/]+\.(?:test|spec)\.ts$/)+ if (!match) return false++ const [, dir, prefix] = match+ if (!existsSync(`${dir}${prefix}`)) return false++ const filename = file.slice(dir.length)+ return `Move '${filename}' under the existing '${prefix}/' folder instead of repeating the domain as a filename prefix.`+ }+})+const noFlatKiwiModules = createProgramFilenameRule({description: 'Disallow flat top-level Kiwi modules — group code under Kiwi subdomains',check(file) {@@ -1228,7 +1242,8 @@ const plugin = {'no-useless-pass-through-wrappers': noUselessPassThroughWrappers,'no-function-alias-imports': noFunctionAliasImports,'no-flat-kiwi-modules': noFlatKiwiModules,- 'no-top-level-prefixed-test-files': noTopLevelPrefixedTestFiles+ 'no-top-level-prefixed-test-files': noTopLevelPrefixedTestFiles,+ 'no-sibling-domain-prefixed-test-files': noSiblingDomainPrefixedTestFiles}}diff --git a/oxlint.json b/oxlint.jsonindex 4b05b1910..31510bc81 100644--- a/oxlint.json+++ b/oxlint.json@@ -154,7 +154,8 @@"open-pencil/non-component-source-directories-kebab-case": "error","open-pencil/no-component-root-sibling-folder": "error","open-pencil/no-flat-kiwi-modules": "error",- "open-pencil/no-top-level-prefixed-test-files": "error"+ "open-pencil/no-top-level-prefixed-test-files": "error",+ "open-pencil/no-sibling-domain-prefixed-test-files": "error"},"overrides": [{diff --git a/tests/engine/editor/clipboard/import-nodes/text-metrics.test.ts b/tests/engine/editor/clipboard/import-nodes/text/metrics.test.tssimilarity index 100%rename from tests/engine/editor/clipboard/import-nodes/text-metrics.test.tsrename to tests/engine/editor/clipboard/import-nodes/text/metrics.test.tsdiff --git a/tests/engine/editor/clipboard/import-nodes/undo-redo.test.ts b/tests/engine/editor/clipboard/import-nodes/undo/redo.test.tssimilarity index 100%rename from tests/engine/editor/clipboard/import-nodes/undo-redo.test.tsrename to tests/engine/editor/clipboard/import-nodes/undo/redo.test.tsdiff --git a/tests/engine/fig/import/legacy/arc-data.test.ts b/tests/engine/fig/import/legacy/arc/data.test.tssimilarity index 96%rename from tests/engine/fig/import/legacy/arc-data.test.tsrename to tests/engine/fig/import/legacy/arc/data.test.tsindex abde7c4d1..6306fdbd1 100644--- a/tests/engine/fig/import/legacy/arc-data.test.ts+++ b/tests/engine/fig/import/legacy/arc/data.test.ts@@ -4,7 +4,7 @@ import { importNodeChanges } from '@open-pencil/core'import { expectDefined } from '#tests/helpers/assert'-import { canvas, doc, node } from './helpers'+import { canvas, doc, node } from '../helpers'describe('fig-import: arc data', () => {test('partial ellipse', () => {diff --git a/tests/engine/fig/import/legacy/auto-layout.test.ts b/tests/engine/fig/import/legacy/auto-layout/basic.test.tssimilarity index 92%rename from tests/engine/fig/import/legacy/auto-layout.test.tsrename to tests/engine/fig/import/legacy/auto-layout/basic.test.tsindex ac50e8f46..8e07a5ade 100644--- a/tests/engine/fig/import/legacy/auto-layout.test.ts+++ b/tests/engine/fig/import/legacy/auto-layout/basic.test.ts@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'import { importNodeChanges } from '@open-pencil/core'-import { canvas, doc, node } from './helpers'+import { canvas, doc, node } from '../helpers'describe('fig-import: auto-layout alignment', () => {test('maps SPACE_EVENLY kiwi primary alignment to Figma space-between', () => {diff --git a/tests/engine/fig/import/legacy/blend-mode.test.ts b/tests/engine/fig/import/legacy/blend/mode.test.tssimilarity index 93%rename from tests/engine/fig/import/legacy/blend-mode.test.tsrename to tests/engine/fig/import/legacy/blend/mode.test.tsindex eebae4146..577f0a7d3 100644--- a/tests/engine/fig/import/legacy/blend-mode.test.ts+++ b/tests/engine/fig/import/legacy/blend/mode.test.ts@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'import { importNodeChanges } from '@open-pencil/core'-import { canvas, doc, node } from './helpers'+import { canvas, doc, node } from '../helpers'describe('fig-import: blend mode', () => {test('node blend mode', () => {diff --git a/tests/engine/fig/import/legacy/clips-content.test.ts b/tests/engine/fig/import/legacy/clips/content.test.tssimilarity index 96%rename from tests/engine/fig/import/legacy/clips-content.test.tsrename to tests/engine/fig/import/legacy/clips/content.test.tsindex 3ac662e9c..cdc3a7bfa 100644--- a/tests/engine/fig/import/legacy/clips-content.test.ts+++ b/tests/engine/fig/import/legacy/clips/content.test.ts@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'import { importNodeChanges } from '@open-pencil/core'-import { canvas, doc, node } from './helpers'+import { canvas, doc, node } from '../helpers'describe('fig-import: clipsContent with resizeToFit', () => {test('regular FRAME with frameMaskDisabled=false clips content', () => {diff --git a/tests/engine/fig/import/legacy/component-sets.test.ts b/tests/engine/fig/import/legacy/component/sets.test.tssimilarity index 97%rename from tests/engine/fig/import/legacy/component-sets.test.tsrename to tests/engine/fig/import/legacy/component/sets.test.tsindex 604255f2b..a7f03963c 100644--- a/tests/engine/fig/import/legacy/component-sets.test.ts+++ b/tests/engine/fig/import/legacy/component/sets.test.ts@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'import { importNodeChanges } from '@open-pencil/core'-import { canvas, doc, node } from './helpers'+import { canvas, doc, node } from '../helpers'describe('fig-import: component set detection', () => {test('FRAME with VARIANT componentPropDefs becomes COMPONENT_SET', () => {diff --git a/tests/engine/fig/import/legacy/image-fills.test.ts b/tests/engine/fig/import/legacy/image/fills.test.tssimilarity index 96%rename from tests/engine/fig/import/legacy/image-fills.test.tsrename to tests/engine/fig/import/legacy/image/fills.test.tsindex cf93f5aba..11dd0bbe9 100644--- a/tests/engine/fig/import/legacy/image-fills.test.ts+++ b/tests/engine/fig/import/legacy/image/fills.test.ts@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'import { importNodeChanges } from '@open-pencil/core'-import { canvas, doc, node } from './helpers'+import { canvas, doc, node } from '../helpers'describe('fig-import: image fills', () => {test('image fill with hash', () => {diff --git a/tests/engine/fig/import/legacy/independent-strokes.test.ts b/tests/engine/fig/import/legacy/independent/strokes.test.tssimilarity index 93%rename from tests/engine/fig/import/legacy/independent-strokes.test.tsrename to tests/engine/fig/import/legacy/independent/strokes.test.tsindex d2e73b43f..6890533cb 100644--- a/tests/engine/fig/import/legacy/independent-strokes.test.ts+++ b/tests/engine/fig/import/legacy/independent/strokes.test.ts@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'import { importNodeChanges } from '@open-pencil/core'-import { canvas, doc, node } from './helpers'+import { canvas, doc, node } from '../helpers'describe('fig-import: independent stroke weights', () => {test('border weights imported', () => {diff --git a/tests/engine/fig/import/legacy/multiple-fills.test.ts b/tests/engine/fig/import/legacy/multiple/fills.test.tssimilarity index 96%rename from tests/engine/fig/import/legacy/multiple-fills.test.tsrename to tests/engine/fig/import/legacy/multiple/fills.test.tsindex 9018dc8b7..c0fe4c277 100644--- a/tests/engine/fig/import/legacy/multiple-fills.test.ts+++ b/tests/engine/fig/import/legacy/multiple/fills.test.ts@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'import { importNodeChanges } from '@open-pencil/core'-import { canvas, doc, node } from './helpers'+import { canvas, doc, node } from '../helpers'describe('fig-import: multiple fills', () => {test('solid + gradient stacked', () => {diff --git a/tests/engine/fig/import/legacy/node-types.test.ts b/tests/engine/fig/import/legacy/node/types.test.tssimilarity index 96%rename from tests/engine/fig/import/legacy/node-types.test.tsrename to tests/engine/fig/import/legacy/node/types.test.tsindex 78c157454..beb1ab4ab 100644--- a/tests/engine/fig/import/legacy/node-types.test.ts+++ b/tests/engine/fig/import/legacy/node/types.test.ts@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'import { importNodeChanges } from '@open-pencil/core'-import { canvas, doc, node } from './helpers'+import { canvas, doc, node } from '../helpers'describe('fig-import: node types', () => {test('ROUNDED_RECTANGLE imported as its own type', () => {diff --git a/tests/engine/figma/api/absolute-position.test.ts b/tests/engine/figma/api/absolute/position.test.tssimilarity index 93%rename from tests/engine/figma/api/absolute-position.test.tsrename to tests/engine/figma/api/absolute/position.test.tsindex 28e19dcbd..f93e0dc9f 100644--- a/tests/engine/figma/api/absolute-position.test.ts+++ b/tests/engine/figma/api/absolute/position.test.ts@@ -1,6 +1,6 @@import { describe, expect, test } from 'bun:test'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('absolute position', () => {test('absoluteBoundingBox accounts for nesting', () => {diff --git a/tests/engine/figma/api/auto-layout.test.ts b/tests/engine/figma/api/auto-layout/basic.test.tssimilarity index 97%rename from tests/engine/figma/api/auto-layout.test.tsrename to tests/engine/figma/api/auto-layout/basic.test.tsindex ceba3f060..92d4bf700 100644--- a/tests/engine/figma/api/auto-layout.test.ts+++ b/tests/engine/figma/api/auto-layout/basic.test.ts@@ -1,6 +1,6 @@import { describe, expect, test } from 'bun:test'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('auto-layout', () => {test('layoutMode', () => {diff --git a/tests/engine/figma/api/auto-layout-extras.test.ts b/tests/engine/figma/api/auto-layout/extras.test.tssimilarity index 97%rename from tests/engine/figma/api/auto-layout-extras.test.tsrename to tests/engine/figma/api/auto-layout/extras.test.tsindex 63d755430..8989231ed 100644--- a/tests/engine/figma/api/auto-layout-extras.test.ts+++ b/tests/engine/figma/api/auto-layout/extras.test.ts@@ -1,6 +1,6 @@import { describe, expect, test } from 'bun:test'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('auto-layout extras', () => {test('primaryAxisSizingMode maps FIXED/AUTO', () => {diff --git a/tests/engine/figma/api/corner-radius.test.ts b/tests/engine/figma/api/corner/radius.test.tssimilarity index 93%rename from tests/engine/figma/api/corner-radius.test.tsrename to tests/engine/figma/api/corner/radius.test.tsindex c188666da..a8c3ffb5f 100644--- a/tests/engine/figma/api/corner-radius.test.ts+++ b/tests/engine/figma/api/corner/radius.test.ts@@ -1,6 +1,6 @@import { describe, expect, test } from 'bun:test'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('corner radius', () => {test('uniform corner radius', () => {diff --git a/tests/engine/figma/api/create-component-from-node.test.ts b/tests/engine/figma/api/create/component-from-node.test.tssimilarity index 94%rename from tests/engine/figma/api/create-component-from-node.test.tsrename to tests/engine/figma/api/create/component-from-node.test.tsindex 2dafc957f..6180763df 100644--- a/tests/engine/figma/api/create-component-from-node.test.ts+++ b/tests/engine/figma/api/create/component-from-node.test.ts@@ -1,6 +1,6 @@import { describe, expect, test } from 'bun:test'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('createComponentFromNode', () => {test('converts frame to component', () => {diff --git a/tests/engine/figma/api/document-and-pages.test.ts b/tests/engine/figma/api/document/pages.test.tssimilarity index 97%rename from tests/engine/figma/api/document-and-pages.test.tsrename to tests/engine/figma/api/document/pages.test.tsindex cd641c6e5..972c40db7 100644--- a/tests/engine/figma/api/document-and-pages.test.ts+++ b/tests/engine/figma/api/document/pages.test.ts@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'import { expectDefined } from '#tests/helpers/assert'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('document & pages', () => {test('root has pages as children', () => {diff --git a/tests/engine/figma/api/find-all-with-criteria.test.ts b/tests/engine/figma/api/find/all-with-criteria.test.tssimilarity index 94%rename from tests/engine/figma/api/find-all-with-criteria.test.tsrename to tests/engine/figma/api/find/all-with-criteria.test.tsindex 4e8c1c1a0..c0f01bcb6 100644--- a/tests/engine/figma/api/find-all-with-criteria.test.ts+++ b/tests/engine/figma/api/find/all-with-criteria.test.ts@@ -1,6 +1,6 @@import { describe, expect, test } from 'bun:test'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('findAllWithCriteria', () => {test('filters by type', () => {diff --git a/tests/engine/figma/api/frozen-arrays.test.ts b/tests/engine/figma/api/frozen/arrays.test.tssimilarity index 95%rename from tests/engine/figma/api/frozen-arrays.test.tsrename to tests/engine/figma/api/frozen/arrays.test.tsindex aa12e6bfd..b883c0c20 100644--- a/tests/engine/figma/api/frozen-arrays.test.ts+++ b/tests/engine/figma/api/frozen/arrays.test.ts@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'import { type Fill } from '@open-pencil/core'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('frozen arrays', () => {test('fills returns frozen clone', () => {diff --git a/tests/engine/figma/api/internals-not-exposed.test.ts b/tests/engine/figma/api/internals/not-exposed.test.tssimilarity index 89%rename from tests/engine/figma/api/internals-not-exposed.test.tsrename to tests/engine/figma/api/internals/not-exposed.test.tsindex f320822aa..67e2daf15 100644--- a/tests/engine/figma/api/internals-not-exposed.test.ts+++ b/tests/engine/figma/api/internals/not-exposed.test.ts@@ -1,6 +1,6 @@import { describe, expect, test } from 'bun:test'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('internals not exposed', () => {test('node has no _id, _graph, _api properties', () => {diff --git a/tests/engine/figma/api/layout-sizing.test.ts b/tests/engine/figma/api/layout/sizing.test.tssimilarity index 98%rename from tests/engine/figma/api/layout-sizing.test.tsrename to tests/engine/figma/api/layout/sizing.test.tsindex 165cf16cf..d82c72db9 100644--- a/tests/engine/figma/api/layout-sizing.test.ts+++ b/tests/engine/figma/api/layout/sizing.test.ts@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'import { getNodeOrThrow } from '#tests/helpers/assert'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('layout sizing', () => {test('child in horizontal parent: h=primary, v=counter', () => {diff --git a/tests/engine/figma/api/min-max-dimensions.test.ts b/tests/engine/figma/api/min-max/dimensions.test.tssimilarity index 95%rename from tests/engine/figma/api/min-max-dimensions.test.tsrename to tests/engine/figma/api/min-max/dimensions.test.tsindex 0689a3308..3d3dd1c77 100644--- a/tests/engine/figma/api/min-max-dimensions.test.ts+++ b/tests/engine/figma/api/min-max/dimensions.test.ts@@ -1,6 +1,6 @@import { describe, expect, test } from 'bun:test'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('min/max dimensions', () => {test('defaults to null', () => {diff --git a/tests/engine/figma/api/node-creation.test.ts b/tests/engine/figma/api/node/creation.test.tssimilarity index 97%rename from tests/engine/figma/api/node-creation.test.tsrename to tests/engine/figma/api/node/creation.test.tsindex deb5be762..a4e10a561 100644--- a/tests/engine/figma/api/node-creation.test.ts+++ b/tests/engine/figma/api/node/creation.test.ts@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'import { expectDefined } from '#tests/helpers/assert'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('node creation', () => {test('createFrame', () => {diff --git a/tests/engine/figma/api/property-access.test.ts b/tests/engine/figma/api/property/access.test.tssimilarity index 97%rename from tests/engine/figma/api/property-access.test.tsrename to tests/engine/figma/api/property/access.test.tsindex d666ea8dc..70f690c22 100644--- a/tests/engine/figma/api/property-access.test.ts+++ b/tests/engine/figma/api/property/access.test.ts@@ -1,6 +1,6 @@import { describe, expect, test } from 'bun:test'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('property access', () => {test('name get/set', () => {diff --git a/tests/engine/figma/api/stroke-details.test.ts b/tests/engine/figma/api/stroke/details.test.tssimilarity index 97%rename from tests/engine/figma/api/stroke-details.test.tsrename to tests/engine/figma/api/stroke/details.test.tsindex 4212e0545..db62d33b1 100644--- a/tests/engine/figma/api/stroke-details.test.ts+++ b/tests/engine/figma/api/stroke/details.test.ts@@ -1,6 +1,6 @@import { describe, expect, test } from 'bun:test'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('stroke details', () => {test('strokeWeight and strokeAlign', () => {diff --git a/tests/engine/figma/api/text.test.ts b/tests/engine/figma/api/text/basic.test.tssimilarity index 97%rename from tests/engine/figma/api/text.test.tsrename to tests/engine/figma/api/text/basic.test.tsindex bd29abb5c..f318b914e 100644--- a/tests/engine/figma/api/text.test.ts+++ b/tests/engine/figma/api/text/basic.test.ts@@ -1,6 +1,6 @@import { describe, expect, test } from 'bun:test'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('text', () => {test('characters maps to text content', () => {diff --git a/tests/engine/figma/api/text-extras.test.ts b/tests/engine/figma/api/text/extras.test.tssimilarity index 96%rename from tests/engine/figma/api/text-extras.test.tsrename to tests/engine/figma/api/text/extras.test.tsindex 12dceb140..02482ba08 100644--- a/tests/engine/figma/api/text-extras.test.ts+++ b/tests/engine/figma/api/text/extras.test.ts@@ -1,6 +1,6 @@import { describe, expect, test } from 'bun:test'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('text extras', () => {test('textTruncation', () => {diff --git a/tests/engine/figma/api/tree-operations.test.ts b/tests/engine/figma/api/tree/operations.test.tssimilarity index 96%rename from tests/engine/figma/api/tree-operations.test.tsrename to tests/engine/figma/api/tree/operations.test.tsindex f204646db..d90c46473 100644--- a/tests/engine/figma/api/tree-operations.test.ts+++ b/tests/engine/figma/api/tree/operations.test.ts@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'import { expectDefined } from '#tests/helpers/assert'-import { createAPI } from './helpers'+import { createAPI } from '../helpers'describe('tree operations', () => {test('appendChild reparents', () => {diff --git a/tests/engine/kiwi/serialize-fixes/auto-layout-transforms.test.ts b/tests/engine/kiwi/serialize-fixes/auto-layout/transforms.test.tssimilarity index 98%rename from tests/engine/kiwi/serialize-fixes/auto-layout-transforms.test.tsrename to tests/engine/kiwi/serialize-fixes/auto-layout/transforms.test.tsindex 0d6ef5695..e38b36c6e 100644--- a/tests/engine/kiwi/serialize-fixes/auto-layout-transforms.test.ts+++ b/tests/engine/kiwi/serialize-fixes/auto-layout/transforms.test.ts@@ -4,7 +4,7 @@ import { SceneGraph, sceneNodeToKiwi } from '@open-pencil/core'import { expectDefined, getNodeOrThrow } from '#tests/helpers/assert'-import { ROOT_GUID, pageId } from './helpers'+import { ROOT_GUID, pageId } from '../helpers'describe('Fix 1: auto-layout child transforms', () => {test('auto-layout child gets zero transform regardless of its x/y', () => {diff --git a/tests/engine/kiwi/serialize-fixes/borders-take-space.test.ts b/tests/engine/kiwi/serialize-fixes/borders/take-space.test.tssimilarity index 97%rename from tests/engine/kiwi/serialize-fixes/borders-take-space.test.tsrename to tests/engine/kiwi/serialize-fixes/borders/take-space.test.tsindex ff5a0717d..e06883018 100644--- a/tests/engine/kiwi/serialize-fixes/borders-take-space.test.ts+++ b/tests/engine/kiwi/serialize-fixes/borders/take-space.test.ts@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'import { SceneGraph } from '@open-pencil/core'-import { pageId, toKiwi } from './helpers'+import { pageId, toKiwi } from '../helpers'describe('Fix 3: bordersTakeSpace serialization', () => {test('auto-layout frame with strokesIncludedInLayout=true gets bordersTakeSpace=true', () => {diff --git a/tests/engine/kiwi/serialize-fixes/font-family.test.ts b/tests/engine/kiwi/serialize-fixes/font/family.test.tssimilarity index 98%rename from tests/engine/kiwi/serialize-fixes/font-family.test.tsrename to tests/engine/kiwi/serialize-fixes/font/family.test.tsindex 77c5d17b4..0f9159a39 100644--- a/tests/engine/kiwi/serialize-fixes/font-family.test.ts+++ b/tests/engine/kiwi/serialize-fixes/font/family.test.ts@@ -4,7 +4,7 @@ import { exportFigFile, parseFigFile, SceneGraph } from '@open-pencil/core'import { expectDefined } from '#tests/helpers/assert'-import { pageId, toKiwi } from './helpers'+import { pageId, toKiwi } from '../helpers'describe('Fix 5: font family normalization in derivedTextData', () => {test('optical size suffix stripped in roundtrip', async () => {diff --git a/tests/engine/kiwi/serialize-fixes/frame-mask.test.ts b/tests/engine/kiwi/serialize-fixes/frame/mask.test.tssimilarity index 98%rename from tests/engine/kiwi/serialize-fixes/frame-mask.test.tsrename to tests/engine/kiwi/serialize-fixes/frame/mask.test.tsindex e7ca73f14..2732fecbc 100644--- a/tests/engine/kiwi/serialize-fixes/frame-mask.test.ts+++ b/tests/engine/kiwi/serialize-fixes/frame/mask.test.ts@@ -4,7 +4,7 @@ import { exportFigFile, parseFigFile, SceneGraph } from '@open-pencil/core'import { expectDefined } from '#tests/helpers/assert'-import { pageId, toKiwi } from './helpers'+import { pageId, toKiwi } from '../helpers'describe('Fix 2: frameMaskDisabled is inverse of clipsContent', () => {test('FRAME without clipsContent gets frameMaskDisabled=true', () => {diff --git a/tests/engine/kiwi/serialize-fixes/line-height.test.ts b/tests/engine/kiwi/serialize-fixes/line/height.test.tssimilarity index 98%rename from tests/engine/kiwi/serialize-fixes/line-height.test.tsrename to tests/engine/kiwi/serialize-fixes/line/height.test.tsindex b378b9c96..aafbaa4a0 100644--- a/tests/engine/kiwi/serialize-fixes/line-height.test.ts+++ b/tests/engine/kiwi/serialize-fixes/line/height.test.ts@@ -4,7 +4,7 @@ import { exportFigFile, parseFigFile, SceneGraph } from '@open-pencil/core'import { expectDefined } from '#tests/helpers/assert'-import { pageId, toKiwi } from './helpers'+import { pageId, toKiwi } from '../helpers'describe('Fix 4: text lineHeight serialization', () => {test('text node with explicit lineHeight uses that value', () => {diff --git a/tests/engine/layout/auto-layout/absolute-children-in-yoga-tree.test.ts b/tests/engine/layout/auto-layout/absolute/children-in-yoga-tree.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/absolute-children-in-yoga-tree.test.tsrename to tests/engine/layout/auto-layout/absolute/children-in-yoga-tree.test.tsdiff --git a/tests/engine/layout/auto-layout/absolute-positioning.test.ts b/tests/engine/layout/auto-layout/absolute/positioning.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/absolute-positioning.test.tsrename to tests/engine/layout/auto-layout/absolute/positioning.test.tsdiff --git a/tests/engine/layout/auto-layout/alignment-counter-axis.test.ts b/tests/engine/layout/auto-layout/alignment/counter-axis.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/alignment-counter-axis.test.tsrename to tests/engine/layout/auto-layout/alignment/counter-axis.test.tsdiff --git a/tests/engine/layout/auto-layout/alignment-primary-axis.test.ts b/tests/engine/layout/auto-layout/alignment/primary-axis.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/alignment-primary-axis.test.tsrename to tests/engine/layout/auto-layout/alignment/primary-axis.test.tsdiff --git a/tests/engine/layout/auto-layout/counter-axis-align-content.test.ts b/tests/engine/layout/auto-layout/counter-axis/align-content.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/counter-axis-align-content.test.tsrename to tests/engine/layout/auto-layout/counter-axis/align-content.test.tsdiff --git a/tests/engine/layout/auto-layout/counter-axis-spacing-no-wrap.test.ts b/tests/engine/layout/auto-layout/counter-axis/spacing-no-wrap.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/counter-axis-spacing-no-wrap.test.tsrename to tests/engine/layout/auto-layout/counter-axis/spacing-no-wrap.test.tsdiff --git a/tests/engine/layout/auto-layout/fill-flex-basis.test.ts b/tests/engine/layout/auto-layout/fill/flex-basis.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/fill-flex-basis.test.tsrename to tests/engine/layout/auto-layout/fill/flex-basis.test.tsdiff --git a/tests/engine/layout/auto-layout/gap-mapping-correctness.test.ts b/tests/engine/layout/auto-layout/gap/mapping-correctness.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/gap-mapping-correctness.test.tsrename to tests/engine/layout/auto-layout/gap/mapping-correctness.test.tsdiff --git a/tests/engine/layout/auto-layout/hidden-children.test.ts b/tests/engine/layout/auto-layout/hidden-children/basic.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/hidden-children.test.tsrename to tests/engine/layout/auto-layout/hidden-children/basic.test.tsdiff --git a/tests/engine/layout/auto-layout/hidden-children-preserve-dimensions.test.ts b/tests/engine/layout/auto-layout/hidden-children/preserve-dimensions.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/hidden-children-preserve-dimensions.test.tsrename to tests/engine/layout/auto-layout/hidden-children/preserve-dimensions.test.tsdiff --git a/tests/engine/layout/auto-layout/horizontal-basic.test.ts b/tests/engine/layout/auto-layout/horizontal/basic.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/horizontal-basic.test.tsrename to tests/engine/layout/auto-layout/horizontal/basic.test.tsdiff --git a/tests/engine/layout/auto-layout/layout-align-self-extended-values.test.ts b/tests/engine/layout/auto-layout/layout-align-self/extended-values.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/layout-align-self-extended-values.test.tsrename to tests/engine/layout/auto-layout/layout-align-self/extended-values.test.tsdiff --git a/tests/engine/layout/auto-layout/layout-mode-none.test.ts b/tests/engine/layout/auto-layout/layout/mode-none.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/layout-mode-none.test.tsrename to tests/engine/layout/auto-layout/layout/mode-none.test.tsdiff --git a/tests/engine/layout/auto-layout/min-max-constraints.test.ts b/tests/engine/layout/auto-layout/min-max/constraints.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/min-max-constraints.test.tsrename to tests/engine/layout/auto-layout/min-max/constraints.test.tsdiff --git a/tests/engine/layout/auto-layout/mixed-sizing.test.ts b/tests/engine/layout/auto-layout/mixed/sizing.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/mixed-sizing.test.tsrename to tests/engine/layout/auto-layout/mixed/sizing.test.tsdiff --git a/tests/engine/layout/auto-layout/nested-auto-layout.test.ts b/tests/engine/layout/auto-layout/nested/basic.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/nested-auto-layout.test.tsrename to tests/engine/layout/auto-layout/nested/basic.test.tsdiff --git a/tests/engine/layout/auto-layout/nested-auto-layout-with-fill-children.test.ts b/tests/engine/layout/auto-layout/nested/fill-children.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/nested-auto-layout-with-fill-children.test.tsrename to tests/engine/layout/auto-layout/nested/fill-children.test.tsdiff --git a/tests/engine/layout/auto-layout/self-alignment.test.ts b/tests/engine/layout/auto-layout/self/alignment.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/self-alignment.test.tsrename to tests/engine/layout/auto-layout/self/alignment.test.tsdiff --git a/tests/engine/layout/auto-layout/sizing-modes.test.ts b/tests/engine/layout/auto-layout/sizing/modes.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/sizing-modes.test.tsrename to tests/engine/layout/auto-layout/sizing/modes.test.tsdiff --git a/tests/engine/layout/auto-layout/text-measurement.test.ts b/tests/engine/layout/auto-layout/text/measurement.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/text-measurement.test.tsrename to tests/engine/layout/auto-layout/text/measurement.test.tsdiff --git a/tests/engine/layout/auto-layout/vertical-basic.test.ts b/tests/engine/layout/auto-layout/vertical/basic.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/vertical-basic.test.tsrename to tests/engine/layout/auto-layout/vertical/basic.test.tsdiff --git a/tests/engine/layout/auto-layout/wrap-layout.test.ts b/tests/engine/layout/auto-layout/wrap/layout.test.tssimilarity index 100%rename from tests/engine/layout/auto-layout/wrap-layout.test.tsrename to tests/engine/layout/auto-layout/wrap/layout.test.ts