Skip to content

Commit 7d4ee0a

Browse files
committed
test(metadata): the exports-entry control counts the new view-container-name entry
Claude-Session: https://claude.ai/code/session_01DDZNkDVwPQnevTFcYE47H3 Co-authored-by: Claude <noreply@anthropic.com>
1 parent d7f56bf commit 7d4ee0a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/metadata/src/serializers/typescript-serializer-annotation.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ describe('TypeScriptSerializer annotation, per metadata type', () => {
168168
it('no exports entry of the package re-exports the internal channel', async () => {
169169
// Control: the name is spelled right, so the absences below can fail.
170170
expect(Object.keys(await import('./typescript-serializer.js'))).toContain('serializeTypeScriptForMetadataType');
171-
expect(EXPORT_ENTRY_SOURCES.length).toBe(5);
171+
// Six since `./view-container-name` (#21412): the count is the control
172+
// that the loop below visits every entry, so a new entry moves it here.
173+
expect(EXPORT_ENTRY_SOURCES.length).toBe(6);
172174
for (const source of EXPORT_ENTRY_SOURCES) {
173175
const entry = (await import(source)) as Record<string, unknown>;
174176
expect(Object.keys(entry).length, source).toBeGreaterThan(0);

0 commit comments

Comments
 (0)