@@ -111,6 +111,7 @@ conditionalTest({ min: 16 })('Undici integration', () => {
111111 await fetch ( request , requestInit ) ;
112112
113113 expect ( outerSpan ) . toBeInstanceOf ( Transaction ) ;
114+ // eslint-disable-next-line deprecation/deprecation
114115 const spans = ( outerSpan as Transaction ) . spanRecorder ?. spans || [ ] ;
115116
116117 expect ( spans . length ) . toBe ( 2 ) ;
@@ -129,6 +130,7 @@ conditionalTest({ min: 16 })('Undici integration', () => {
129130 }
130131
131132 expect ( outerSpan ) . toBeInstanceOf ( Transaction ) ;
133+ // eslint-disable-next-line deprecation/deprecation
132134 const spans = ( outerSpan as Transaction ) . spanRecorder ?. spans || [ ] ;
133135
134136 expect ( spans . length ) . toBe ( 2 ) ;
@@ -149,6 +151,7 @@ conditionalTest({ min: 16 })('Undici integration', () => {
149151 }
150152
151153 expect ( outerSpan ) . toBeInstanceOf ( Transaction ) ;
154+ // eslint-disable-next-line deprecation/deprecation
152155 const spans = ( outerSpan as Transaction ) . spanRecorder ?. spans || [ ] ;
153156
154157 expect ( spans . length ) . toBe ( 2 ) ;
@@ -170,6 +173,7 @@ conditionalTest({ min: 16 })('Undici integration', () => {
170173 }
171174
172175 expect ( outerSpan ) . toBeInstanceOf ( Transaction ) ;
176+ // eslint-disable-next-line deprecation/deprecation
173177 const spans = ( outerSpan as Transaction ) . spanRecorder ?. spans || [ ] ;
174178
175179 expect ( spans . length ) . toBe ( 1 ) ;
@@ -189,6 +193,7 @@ conditionalTest({ min: 16 })('Undici integration', () => {
189193 it ( 'does create a span if `shouldCreateSpanForRequest` is defined' , async ( ) => {
190194 await startSpan ( { name : 'outer-span' } , async outerSpan => {
191195 expect ( outerSpan ) . toBeInstanceOf ( Transaction ) ;
196+ // eslint-disable-next-line deprecation/deprecation
192197 const spans = ( outerSpan as Transaction ) . spanRecorder ?. spans || [ ] ;
193198
194199 const undoPatch = patchUndici ( { shouldCreateSpanForRequest : url => url . includes ( 'yes' ) } ) ;
@@ -213,6 +218,7 @@ conditionalTest({ min: 16 })('Undici integration', () => {
213218 await runWithAsyncContext ( async ( ) => {
214219 await startSpan ( { name : 'outer-span' } , async outerSpan => {
215220 expect ( outerSpan ) . toBeInstanceOf ( Transaction ) ;
221+ // eslint-disable-next-line deprecation/deprecation
216222 const spans = ( outerSpan as Transaction ) . spanRecorder ?. spans || [ ] ;
217223
218224 await fetch ( 'http://localhost:18100' , { method : 'POST' } ) ;
@@ -287,6 +293,7 @@ conditionalTest({ min: 16 })('Undici integration', () => {
287293
288294 await startSpan ( { name : 'outer-span' } , async outerSpan => {
289295 expect ( outerSpan ) . toBeInstanceOf ( Transaction ) ;
296+ // eslint-disable-next-line deprecation/deprecation
290297 const spans = ( outerSpan as Transaction ) . spanRecorder ?. spans || [ ] ;
291298
292299 expect ( spans . length ) . toBe ( 1 ) ;
0 commit comments