Skip to content

Commit 6f044d4

Browse files
committed
test(types): the static table pin lists the three node-face tombstones it inherits
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E5XcbmSeZTDGm5zCYkC9XV
1 parent 22a9050 commit 6f044d4

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎ui/packages/types/src/__tests__/static-table-narrow-surface.test.ts‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,14 +477,20 @@ describe('the split itself — narrow = rich key set, live = the measured read s
477477
expect(Object.keys(shapeOf(TableColumnSchema)).sort()).toEqual([...RICH_COLUMN_KEYS].sort());
478478
});
479479

480-
it('the static table zod tombstones exactly its two retired keys plus the two content channels', () => {
480+
it('the static table zod tombstones exactly its two retired keys plus the two content channels, and inherits `BaseSchema`\'s three', () => {
481481
// `hoverable` / `striped` are objectui#5474's retirements — keys the static
482482
// renderer never read. `body` / `children` joined them in objectui#9256 for
483483
// the SAME reason measured a second time: the compiler-API read-site sweep
484484
// over all 24 registering packages files zero `body` / `children` reads
485485
// under `TableSchema`, so both content channels were silent empty boxes
486-
// here too. Four tombstones, one mechanism.
487-
expect(tombstonedKeys(TableZod).sort()).toEqual(['body', 'children', 'hoverable', 'striped']);
486+
// here too. Four tombstones, one mechanism. `visibleOn` / `hiddenOn` /
487+
// `disabledOn` are `BaseSchema`'s OWN tombstones (objectstack#25926: the
488+
// retired spellings of `visibleWhen` / `hidden` / `disabled`), inherited by
489+
// every node mirror that extends it; they are listed here so a drift in
490+
// either direction on either face is seen, not absorbed.
491+
expect(tombstonedKeys(TableZod).sort()).toEqual(
492+
['body', 'children', 'disabledOn', 'hiddenOn', 'hoverable', 'striped', 'visibleOn'],
493+
);
488494
});
489495
});
490496

0 commit comments

Comments
 (0)