@@ -12,7 +12,6 @@ import {
1212 EventCollector ,
1313 getApiKey ,
1414 skipIfNoApiKey ,
15- shouldSkipOutput ,
1615 DEFAULT_AGENT ,
1716 DEFAULT_TIMEOUT ,
1817} from '../utils'
@@ -38,8 +37,6 @@ describe('Integration: Event Ordering', () => {
3837 handleEvent : collector . handleEvent ,
3938 } )
4039
41- if ( shouldSkipOutput ( result . output ) ) return
42-
4340 const startIndex = collector . events . findIndex ( ( e ) => e . type === 'start' )
4441 expect ( startIndex ) . toBe ( 0 )
4542 } ,
@@ -59,8 +56,6 @@ describe('Integration: Event Ordering', () => {
5956 handleEvent : collector . handleEvent ,
6057 } )
6158
62- if ( shouldSkipOutput ( result . output ) ) return
63-
6459 const finishIndex = collector . events . findIndex ( ( e ) => e . type === 'finish' )
6560 const lastTextIndex = collector . events
6661 . map ( ( e , i ) => ( e . type === 'text' ? i : - 1 ) )
@@ -89,8 +84,6 @@ describe('Integration: Event Ordering', () => {
8984 cwd : process . cwd ( ) ,
9085 } )
9186
92- if ( shouldSkipOutput ( result . output ) ) return
93-
9487 const toolCalls = collector . getEventsByType ( 'tool_call' )
9588 const toolResults = collector . getEventsByType ( 'tool_result' )
9689
@@ -121,8 +114,6 @@ describe('Integration: Event Ordering', () => {
121114 handleEvent : collector . handleEvent ,
122115 } )
123116
124- if ( shouldSkipOutput ( result . output ) ) return
125-
126117 // Use collector's verifyEventOrder method
127118 const hasCorrectOrder = collector . verifyEventOrder ( [ 'start' , 'finish' ] )
128119 expect ( hasCorrectOrder ) . toBe ( true )
@@ -143,8 +134,6 @@ describe('Integration: Event Ordering', () => {
143134 handleEvent : collector . handleEvent ,
144135 } )
145136
146- if ( shouldSkipOutput ( result . output ) ) return
147-
148137 // Find the last finish event
149138 const finishEvents = collector . getEventsByType ( 'finish' )
150139 if ( finishEvents . length > 0 ) {
@@ -173,16 +162,12 @@ describe('Integration: Event Ordering', () => {
173162 handleEvent : collector1 . handleEvent ,
174163 } )
175164
176- if ( shouldSkipOutput ( result1 . output ) ) return
177-
178165 const result2 = await client . run ( {
179166 agent : DEFAULT_AGENT ,
180167 prompt : 'Say "second"' ,
181168 handleEvent : collector2 . handleEvent ,
182169 } )
183170
184- if ( shouldSkipOutput ( result2 . output ) ) return
185-
186171 // Both should have correct ordering
187172 expect ( collector1 . verifyEventOrder ( [ 'start' , 'finish' ] ) ) . toBe ( true )
188173 expect ( collector2 . verifyEventOrder ( [ 'start' , 'finish' ] ) ) . toBe ( true )
0 commit comments