@@ -138,8 +138,12 @@ describe('main', () => {
138138 } ,
139139 { action : 'destroy' , app : 'api-one-app' } ,
140140 { action : 'destroy' , app : 'api-two-app' } ,
141- { action : 'skip' , appOrProject : 'web-one' , reason : 'failed' } ,
142- { action : 'skip' , appOrProject : 'web-two' , reason : 'outdated' }
141+ {
142+ action : 'failed' ,
143+ appOrProject : 'web-two' ,
144+ error : 'deployment error'
145+ } ,
146+ { action : 'skip' , appOrProject : 'web-one' , reason : 'outdated' }
143147 ]
144148 } ;
145149 flyDeploymentMock . mockResolvedValue ( result ) ;
@@ -154,10 +158,12 @@ describe('main', () => {
154158 'api-one-app' ,
155159 'api-two-app'
156160 ] ) ;
157- expect ( setOutputMock ) . toHaveBeenCalledWith ( 'skipped' , [
158- 'web-one' ,
159- 'web-two'
160- ] ) ;
161+ expect ( setOutputMock ) . toHaveBeenCalledWith ( 'skipped' , [ 'web-one' ] ) ;
162+ expect ( setOutputMock ) . toHaveBeenCalledWith ( 'failed' , [ 'web-two' ] ) ;
163+
164+ expect ( setFailedMock ) . toHaveBeenCalledWith (
165+ 'Deployment failed for 1 project(s):\nweb-two: deployment error'
166+ ) ;
161167 } ) ;
162168
163169 it ( 'should handle errors' , async ( ) => {
0 commit comments