@@ -107,7 +107,7 @@ function makeContext(
107107 } ,
108108 schemaCache : new SchemaCache ( ) ,
109109 previousSteps : [ ] ,
110- logger : { error : jest . fn ( ) } ,
110+ logger : { info : jest . fn ( ) , error : jest . fn ( ) } ,
111111 ...overrides ,
112112 } ;
113113}
@@ -218,7 +218,7 @@ describe('McpTaskStepExecutor', () => {
218218 tool_calls : [ { name : 'send_notification' , args : { message : 'Hi' } , id : 'call_1' } ] ,
219219 } )
220220 . mockResolvedValueOnce ( { tool_calls : [ ] } ) ;
221- const logger = { error : jest . fn ( ) } ;
221+ const logger = { info : jest . fn ( ) , error : jest . fn ( ) } ;
222222 const runStore = makeMockRunStore ( ) ;
223223 const context = makeContext ( {
224224 model,
@@ -299,7 +299,7 @@ describe('McpTaskStepExecutor', () => {
299299
300300 it ( 'returns error when saveStepExecution fails (Branch C)' , async ( ) => {
301301 const { model } = makeMockModel ( 'send_notification' , { message : 'Hello' } ) ;
302- const logger = { error : jest . fn ( ) } ;
302+ const logger = { info : jest . fn ( ) , error : jest . fn ( ) } ;
303303 const runStore = makeMockRunStore ( {
304304 saveStepExecution : jest . fn ( ) . mockRejectedValue ( new Error ( 'DB unavailable' ) ) ,
305305 } ) ;
@@ -491,7 +491,7 @@ describe('McpTaskStepExecutor', () => {
491491 invoke : invokeFn ,
492492 } ) ;
493493 const { model } = makeMockModel ( 'send_notification' , { message : 'Hello' } ) ;
494- const logger = { error : jest . fn ( ) } ;
494+ const logger = { info : jest . fn ( ) , error : jest . fn ( ) } ;
495495 const runStore = makeMockRunStore ( {
496496 saveStepExecution : jest . fn ( ) . mockRejectedValue ( new Error ( 'Disk full' ) ) ,
497497 } ) ;
@@ -529,7 +529,7 @@ describe('McpTaskStepExecutor', () => {
529529 userConfirmed : true ,
530530 } ,
531531 } ;
532- const logger = { error : jest . fn ( ) } ;
532+ const logger = { info : jest . fn ( ) , error : jest . fn ( ) } ;
533533 const runStore = makeMockRunStore ( {
534534 getStepExecutions : jest . fn ( ) . mockResolvedValue ( [ execution ] ) ,
535535 saveStepExecution : jest . fn ( ) . mockRejectedValue ( new Error ( 'Disk full' ) ) ,
@@ -638,7 +638,7 @@ describe('McpTaskStepExecutor', () => {
638638 invoke : invokeFn ,
639639 } ) ;
640640 const { model } = makeMockModel ( 'send_notification' , { } ) ;
641- const logger = { error : jest . fn ( ) } ;
641+ const logger = { info : jest . fn ( ) , error : jest . fn ( ) } ;
642642 const context = makeContext ( {
643643 model,
644644 stepDefinition : makeStep ( { automaticExecution : true } ) ,
0 commit comments