openpencil/packages/fig/tests
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
..
document test(fig): pin override and variable precedence to what Figma renders (#912) 2026-10-06 09:08:51 +00:00
helpers test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
instance-overrides test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
node-change test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
index.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
source-metadata.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
vector-style-fills.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00