@@ -375,10 +375,12 @@ function fakeWorld(state = {}) {
375375 throw new Error ( `unexpected gh ${ args . join ( " " ) } ` ) ;
376376 } ;
377377 const lines = [ ] ;
378+ const warnings = [ ] ;
378379 return {
379380 spawn,
380381 calls,
381382 lines,
383+ warnings,
382384 readFile : ( p ) => {
383385 if ( ! ( p in s . files ) ) throw new Error ( `no ${ p } ` ) ;
384386 return s . files [ p ] ;
@@ -411,6 +413,7 @@ const run = (world, extra = {}) =>
411413 readFile : world . readFile ,
412414 exists : world . exists ,
413415 log : world . log ,
416+ warn : ( w ) => world . warnings . push ( w ) ,
414417 dryRun : false ,
415418 ...extra ,
416419 } ) ;
@@ -531,6 +534,7 @@ test("a forged marker from an outsider suppresses nothing", (t) => {
531534 } ) ;
532535 run ( world , { output : outputFile ( t ) } ) ;
533536 assert . equal ( writes ( world . calls ) . length , 1 ) ;
537+ assert . match ( world . warnings . join ( "\n" ) , / " o c t o c a t " / ) ;
534538} ) ;
535539
536540test ( "a newer release supersedes the open older issue, once" , ( t ) => {
@@ -575,6 +579,10 @@ test("a failure after filing still emits what was filed, then fails", (t) => {
575579 filedFrom ( output ) . map ( ( f ) => f . issue ) ,
576580 [ 600 , 601 ] ,
577581 ) ;
582+ assert . match (
583+ world . warnings . join ( "\n" ) ,
584+ / M C P P y t h o n S D K f a i l e d : .* c o m m e n t b o o m / ,
585+ ) ;
578586} ) ;
579587
580588test ( "one group's failure does not cost another its issue" , ( t ) => {
@@ -590,6 +598,10 @@ test("one group's failure does not cost another its issue", (t) => {
590598 filedFrom ( output ) . map ( ( f ) => f . label ) ,
591599 [ "MCP Python SDK" ] ,
592600 ) ;
601+ assert . match (
602+ world . warnings . join ( "\n" ) ,
603+ / \( v 1 \) f a i l e d : g h i s s u e c r e a t e f a i l e d / ,
604+ ) ;
593605} ) ;
594606
595607test ( "a registry failure fails the run before anything is filed" , ( ) => {
0 commit comments