Skip to content

Commit 012d9d0

Browse files
committed
test(types): ObjectFormSchema declares 71 members (#25923)
The member-count pin in object-view-slot-key-lists moves from 69 to 71: `contentLayout` and `confirmOnDiscard` are now declared by reference to `ComponentPropsMap['object-form']`, and the `form` slot carries both. Claude-Session: https://claude.ai/code/session_01WGufzhgTn8yFwqXxanJd4c Co-authored-by: Claude <noreply@anthropic.com>
1 parent 7a58354 commit 012d9d0

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎ui/packages/types/src/__tests__/object-view-slot-key-lists.test.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,12 @@ describe('the source schemas still declare their full member sets', () => {
292292
expect(declaresStringIndex(grid)).toBe(false);
293293
});
294294

295-
it('ObjectFormSchema declares 69 members and no longer carries the #5155 index signature', () => {
295+
// 71 since objectstack#25923 (work item 4) declared `contentLayout` and
296+
// `confirmOnDiscard` by reference to `ComponentPropsMap['object-form']`; the
297+
// `form` slot carries both.
298+
it('ObjectFormSchema declares 71 members and no longer carries the #5155 index signature', () => {
296299
const form = exportedType('ObjectFormSchema');
297-
expect(memberNames(form)).toHaveLength(69);
300+
expect(memberNames(form)).toHaveLength(71);
298301
expect(memberNames(form)).toEqual(expect.arrayContaining(['fields', 'sections', 'submitText']));
299302
expect(declaresStringIndex(form)).toBe(false);
300303
});

0 commit comments

Comments
 (0)