@@ -465,7 +465,7 @@ test('returns structured results for each artifact-scoped module tool', async ()
465465 expect ( productRoots . content ) . toEqual ( [
466466 {
467467 type : 'text' ,
468- text : 'Rstack roots: modules=8, edges=4, roots=1/4 . See structuredContent for bounded root details.' ,
468+ text : 'Rstack roots: modules=8, edges=4, roots=1/1 . See structuredContent for bounded root details.' ,
469469 } ,
470470 ] ) ;
471471 expect ( productRoots . structuredContent ) . toMatchObject ( {
@@ -475,7 +475,7 @@ test('returns structured results for each artifact-scoped module tool', async ()
475475 artifactBinding : 'explicit-unverified' ,
476476 } ,
477477 graph : { moduleCount : 8 , edgeCount : 4 } ,
478- rootSummary : { total : 4 , returned : 1 , truncated : true } ,
478+ rootSummary : { total : 1 , returned : 1 , truncated : false } ,
479479 product : { roots : [ expect . any ( Object ) ] } ,
480480 } ) ;
481481
@@ -491,17 +491,17 @@ test('returns structured results for each artifact-scoped module tool', async ()
491491 expect ( candidates . content ) . toEqual ( [
492492 {
493493 type : 'text' ,
494- text : 'Rstack result: total=1 , returned=1, project=1 , dependency=0. See structuredContent for complete data.' ,
494+ text : 'Rstack result: total=4 , returned=1, project=4 , dependency=0. See structuredContent for complete data.' ,
495495 } ,
496496 ] ) ;
497497 expect ( candidates . structuredContent ) . toMatchObject ( {
498- total : 1 ,
498+ total : 4 ,
499499 returned : 1 ,
500- ownership : { project : 1 , dependency : 0 } ,
500+ ownership : { project : 4 , dependency : 0 } ,
501501 candidates : [
502502 {
503503 classification : 'unreachable-module-candidate' ,
504- subject : { kind : 'module' , id : '3 ' , path : 'src/legacy .ts' } ,
504+ subject : { kind : 'module' , id : '8 ' , path : 'src/cjs .ts' } ,
505505 } ,
506506 ] ,
507507 } ) ;
0 commit comments