File tree Expand file tree Collapse file tree
tests/integration/rsc-mf/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -838,8 +838,21 @@ function runTests({ mode }: TestConfig) {
838838 const defaultRequestCount = actionRequestIds . filter ( id =>
839839 defaultProxyActionIdSet . has ( id ) ,
840840 ) . length ;
841+ const actionRequestCountById = new Map < string , number > ( ) ;
842+ for ( const actionId of actionRequestIds ) {
843+ actionRequestCountById . set (
844+ actionId ,
845+ ( actionRequestCountById . get ( actionId ) || 0 ) + 1 ,
846+ ) ;
847+ }
841848 expect ( actionFamilyProxyActionIdSet . size ) . toBe ( hostProxyActionIdSet . size ) ;
842849 expect ( uniqueActionRequestIds . size ) . toBe ( hostProxyMapKeyCount ) ;
850+ expect ( actionRequestCountById . size ) . toBe ( uniqueActionRequestIds . size ) ;
851+ expect (
852+ [ ...actionRequestCountById . values ( ) ] . every (
853+ count => count === EXPECTED_ACTION_POSTS_PER_FAMILY ,
854+ ) ,
855+ ) . toBe ( true ) ;
843856 expect ( usesDirectProxyIds || usesBundledProxyIds ) . toBe ( true ) ;
844857 if ( ! usesDirectProxyIds || ! usesBundledProxyIds ) {
845858 expect ( hostProxyMapCollisionCount ) . toBeGreaterThan ( 0 ) ;
You can’t perform that action at this time.
0 commit comments