@@ -52,10 +52,10 @@ describe('Amazon Q Inline', async function () {
5252 const events = getEvents ( 'codewhisperer_userTriggerDecision' )
5353 console . table ( {
5454 'telemetry events' : JSON . stringify ( events ) ,
55- 'suggestions states' : JSON . stringify ( session . suggestionStates ) ,
56- 'valid recommendation' : RecommendationHandler . instance . isValidResponse ( ) ,
55+ // 'suggestions states': JSON.stringify(session.suggestionStates),
56+ // 'valid recommendation': RecommendationHandler.instance.isValidResponse(),
5757 'recommendation service status' : RecommendationService . instance . isRunning ,
58- recommendations : session . recommendations ,
58+ // recommendations: session.recommendations,
5959 } )
6060 }
6161
@@ -83,8 +83,14 @@ describe('Amazon Q Inline', async function () {
8383 `Suggestions failed to become visible. Suggestion States: ${ JSON . stringify ( session . suggestionStates ) } `
8484 )
8585 }
86- if ( session . recommendations . length === 0 ) {
87- throw new Error ( 'No recommendations were generated' )
86+ console . table ( {
87+ 'suggestions states' : JSON . stringify ( session . suggestionStates ) ,
88+ 'valid recommendation' : RecommendationHandler . instance . isValidResponse ( ) ,
89+ 'recommendation service status' : RecommendationService . instance . isRunning ,
90+ recommendations : session . recommendations ,
91+ } )
92+ if ( ! RecommendationHandler . instance . isValidResponse ( ) ) {
93+ throw new Error ( 'Did not find a valid response' )
8894 }
8995 }
9096
0 commit comments