@@ -795,10 +795,20 @@ describe('the real workspace — the population this widening was measured again
795795 const kinds = results . flatMap ( ( r ) => r . entryForms . map ( ( e ) => e . kind ) ) ;
796796 expect ( kinds ) . toContain ( 'asset' ) ; // @object -ui/app-shell's `./styles.css`
797797 expect ( results . flatMap ( ( r ) => r . entryForms . flatMap ( ( e ) => e . alternateFormats ) ) . length ) . toBeGreaterThan ( 0 ) ;
798- // ...and every package still walks from exactly one root, which is the
799- // sentence this change has to carry: the fix is right, and the genuine
800- // multi-entry population is ZERO today, so it is future packages the
801- // priority rests on rather than present ones.
802- for ( const r of results ) expect ( r . entryPoints , r . name ) . toHaveLength ( 1 ) ;
798+ // ...and the genuine multi-entry population is exactly the two `/core`
799+ // subpaths objectstack#33581 published: side-effect-free secondary entry
800+ // points, walked as roots of their own (and finding no registrar, which is
801+ // their point). Every other package still walks from one root. A package
802+ // joining or leaving this list is the moment to re-read the argument above.
803+ const multi = Object . fromEntries (
804+ results . filter ( ( r ) => r . entryPoints . length > 1 ) . map ( ( r ) => [ r . name , r . entryPoints ] ) ,
805+ ) ;
806+ expect ( multi ) . toEqual ( {
807+ '@object-ui/plugin-form' : [ 'src/core.ts' , 'src/index.tsx' ] ,
808+ '@object-ui/plugin-view' : [ 'src/core.ts' , 'src/index.tsx' ] ,
809+ } ) ;
810+ for ( const r of results ) {
811+ if ( ! ( r . name in multi ) ) expect ( r . entryPoints , r . name ) . toHaveLength ( 1 ) ;
812+ }
803813 } ) ;
804814} ) ;
0 commit comments