@@ -289,7 +289,7 @@ describe('Integration | Scope', () => {
289289 const error = new Error ( 'test error' ) ;
290290 Sentry . captureException ( error ) ;
291291
292- await client . flush ( ) ;
292+ await client ? .flush ( ) ;
293293
294294 expect ( beforeSend ) . toHaveBeenCalledTimes ( 1 ) ;
295295 expect ( beforeSend ) . toHaveBeenCalledWith (
@@ -347,7 +347,7 @@ describe('Integration | Scope', () => {
347347 const error = new Error ( 'test error' ) ;
348348 Sentry . captureException ( error ) ;
349349
350- await client . flush ( ) ;
350+ await client ? .flush ( ) ;
351351
352352 expect ( beforeSend ) . toHaveBeenCalledTimes ( 1 ) ;
353353 expect ( beforeSend ) . toHaveBeenCalledWith (
@@ -396,7 +396,7 @@ describe('Integration | Scope', () => {
396396
397397 expect ( initialIsolationScope . getScopeData ( ) . tags ) . toEqual ( { tag1 : 'val1' , tag2 : 'val2' } ) ;
398398
399- await client . flush ( ) ;
399+ await client ? .flush ( ) ;
400400
401401 expect ( beforeSend ) . toHaveBeenCalledTimes ( 1 ) ;
402402 expect ( beforeSend ) . toHaveBeenCalledWith (
@@ -439,7 +439,7 @@ describe('Integration | Scope', () => {
439439 } ) ;
440440 } ) ;
441441
442- await client . flush ( ) ;
442+ await client ? .flush ( ) ;
443443
444444 expect ( beforeSend ) . toHaveBeenCalledTimes ( 1 ) ;
445445 expect ( beforeSend ) . toHaveBeenCalledWith (
@@ -499,7 +499,7 @@ describe('Integration | Scope', () => {
499499 const error = new Error ( 'test error' ) ;
500500 Sentry . captureException ( error ) ;
501501
502- await client . flush ( ) ;
502+ await client ? .flush ( ) ;
503503
504504 expect ( beforeSend ) . toHaveBeenCalledTimes ( 1 ) ;
505505 expect ( beforeSend ) . toHaveBeenCalledWith (
@@ -547,7 +547,7 @@ describe('Integration | Scope', () => {
547547
548548 expect ( initialCurrentScope . getScopeData ( ) . tags ) . toEqual ( { tag1 : 'val1' , tag2 : 'val2' } ) ;
549549
550- await client . flush ( ) ;
550+ await client ? .flush ( ) ;
551551
552552 expect ( beforeSend ) . toHaveBeenCalledTimes ( 1 ) ;
553553 expect ( beforeSend ) . toHaveBeenCalledWith (
@@ -593,7 +593,7 @@ describe('Integration | Scope', () => {
593593 } ) ;
594594 } ) ;
595595
596- await client . flush ( ) ;
596+ await client ? .flush ( ) ;
597597
598598 expect ( beforeSend ) . toHaveBeenCalledTimes ( 1 ) ;
599599 expect ( beforeSend ) . toHaveBeenCalledWith (
@@ -636,7 +636,7 @@ describe('Integration | Scope', () => {
636636 } ) ;
637637 } ) ;
638638
639- await client . flush ( ) ;
639+ await client ? .flush ( ) ;
640640
641641 expect ( beforeSend ) . toHaveBeenCalledTimes ( 1 ) ;
642642 expect ( beforeSend ) . toHaveBeenCalledWith (
@@ -682,7 +682,7 @@ describe('Integration | Scope', () => {
682682 } ) ;
683683 } ) ;
684684
685- await client . flush ( ) ;
685+ await client ? .flush ( ) ;
686686
687687 expect ( beforeSend ) . toHaveBeenCalledTimes ( 1 ) ;
688688 expect ( beforeSend ) . toHaveBeenCalledWith (
0 commit comments