@@ -583,18 +583,22 @@ test('Deploy actions should pass if there are no build files and filter does not
583583 await expect ( deployActions ( global . sampleAppConfig , { filterEntities : { triggers : [ 'trigger1' ] } } ) ) . resolves . toEqual ( { } )
584584} )
585585
586- test ( 'Deploy actions should succeed when packages: {} (empty packages, no actions defined)' , async ( ) => {
586+ test ( 'Deploy actions should succeed and warn when packages: {} (empty packages, no actions defined)' , async ( ) => {
587587 const emptyPackagesConfig = deepCopy ( global . sampleAppConfig )
588588 emptyPackagesConfig . manifest . full . packages = { }
589589 runtimeLibUtils . processPackage . mockReturnValue ( deepCopy ( mockEntities ) )
590- await expect ( deployActions ( emptyPackagesConfig ) ) . resolves . toBeDefined ( )
590+ const logSpy = jest . fn ( )
591+ await expect ( deployActions ( emptyPackagesConfig , { } , logSpy ) ) . resolves . toBeDefined ( )
592+ expect ( logSpy ) . toHaveBeenCalledWith ( expect . stringContaining ( 'no actions defined in manifest' ) )
591593} )
592594
593- test ( 'Deploy actions should succeed when a package has no actions key (pkg.actions || {} guard)' , async ( ) => {
595+ test ( 'Deploy actions should succeed and warn when a package has no actions key (pkg.actions || {} guard)' , async ( ) => {
594596 const noActionsPkgConfig = deepCopy ( global . sampleAppConfig )
595597 noActionsPkgConfig . manifest . full . packages = { emptyPkg : { } }
596598 runtimeLibUtils . processPackage . mockReturnValue ( deepCopy ( mockEntities ) )
597- await expect ( deployActions ( noActionsPkgConfig ) ) . resolves . toBeDefined ( )
599+ const logSpy = jest . fn ( )
600+ await expect ( deployActions ( noActionsPkgConfig , { } , logSpy ) ) . resolves . toBeDefined ( )
601+ expect ( logSpy ) . toHaveBeenCalledWith ( expect . stringContaining ( 'no actions defined in manifest' ) )
598602} )
599603
600604// lonely
0 commit comments