openpencil/packages/fig/tests/document
Danila Poyarkov 85b83cf050
test(fig): pin override and variable precedence to what Figma renders (#912)
* test(fig): pin override and variable precedence to what Figma renders

The rule that decides between a bound variable and an instance's text
override is not stated anywhere we control: an owner's consumption
entry binds the field when it carries variableData and clears it when
it is bare, and a binding beats a literal an outer owner recorded.

The archive is a six-node file authored in Figma for exactly these
cases, so the expected strings are Figma's own output rather than ours.
It replaces reaching for a 44k-record community file to check this.

* ci: pull the new fixture in the quick unit shards

The quick shards fetch an explicit list of small LFS fixtures, so a new
one arrives as a pointer and the fig shard fails parsing it.
2026-10-06 09:08:51 +00:00
..
bindings test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
checkpoint.test.ts
component-dependencies.test.ts
constraint-resize.test.ts
dependency-closure.test.ts
fragment.test.ts
load-transaction.test.ts test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
metadata.test.ts
nested-components.test.ts
nested-constraint-resize.test.ts
node-shape.test.ts perf(scene-graph): give imported nodes the shape every node shares (#903) 2026-10-05 17:14:12 +00:00
occurrence-conversion.test.ts
page-selection.test.ts
property-inheritance.test.ts
read.test.ts test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
resource-reference.test.ts
resources.test.ts
retained-records.test.ts
scale-constraints.test.ts
slots.test.ts
target-aspect-resize.test.ts
text-chain.test.ts
variable-override-precedence.test.ts test(fig): pin override and variable precedence to what Figma renders (#912) 2026-10-06 09:08:51 +00:00
variant-values.test.ts
visual-scale-contract.test.ts test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00