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 feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
component-dependencies.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
constraint-resize.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
dependency-closure.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
fragment.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
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 refactor: define OpenPencil plugin data in one typed registry (#878) 2026-10-04 17:32:18 +00:00
nested-components.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
nested-constraint-resize.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
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 feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
page-selection.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
property-inheritance.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
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 feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
resources.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
retained-records.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
scale-constraints.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
slots.test.ts fix(fig): read, render, and write Figma slots (#850) 2026-10-04 00:45:10 +04:00
target-aspect-resize.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
text-chain.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
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 feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
visual-scale-contract.test.ts test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00