@@ -275,7 +275,9 @@ describe('FeedbackButtonManager', () => {
275275 } ) ;
276276
277277 jest . spyOn ( Appearance , 'getColorScheme' ) . mockReturnValue ( 'dark' ) ;
278- listener ( { colorScheme : 'dark' } ) ;
278+ await act ( async ( ) => {
279+ listener ( { colorScheme : 'dark' } ) ;
280+ } )
279281
280282 expect ( toJSON ( ) ) . toMatchSnapshot ( ) ;
281283 } ) ;
@@ -391,8 +393,8 @@ describe('FeedbackButtonManager', () => {
391393 jest . spyOn ( Appearance , 'getColorScheme' ) . mockReturnValue ( 'light' ) ;
392394
393395 await act ( async ( ) => {
394- showFeedbackWidget ( ) ;
395- } ) ;
396+ showFeedbackButton ( ) ;
397+ } )
396398
397399 expect ( toJSON ( ) ) . toMatchSnapshot ( ) ;
398400 } ) ;
@@ -408,7 +410,7 @@ describe('FeedbackButtonManager', () => {
408410 jest . spyOn ( Appearance , 'getColorScheme' ) . mockReturnValue ( 'dark' ) ;
409411
410412 await act ( async ( ) => {
411- showFeedbackWidget ( ) ;
413+ showFeedbackButton ( ) ;
412414 } ) ;
413415
414416 expect ( toJSON ( ) ) . toMatchSnapshot ( ) ;
@@ -427,11 +429,13 @@ describe('FeedbackButtonManager', () => {
427429 jest . spyOn ( Appearance , 'getColorScheme' ) . mockReturnValue ( 'light' ) ;
428430
429431 await act ( async ( ) => {
430- showFeedbackWidget ( ) ;
432+ showFeedbackButton ( ) ;
431433 } ) ;
432434
433435 jest . spyOn ( Appearance , 'getColorScheme' ) . mockReturnValue ( 'dark' ) ;
434- listener ( { colorScheme : 'dark' } ) ;
436+ await act ( async ( ) => {
437+ listener ( { colorScheme : 'dark' } ) ;
438+ } ) ;
435439
436440 expect ( toJSON ( ) ) . toMatchSnapshot ( ) ;
437441 } ) ;
@@ -454,7 +458,7 @@ describe('FeedbackButtonManager', () => {
454458 getClient ( ) ?. addIntegration ( integration ) ;
455459
456460 await act ( async ( ) => {
457- showFeedbackWidget ( ) ;
461+ showFeedbackButton ( ) ;
458462 } ) ;
459463
460464 expect ( toJSON ( ) ) . toMatchSnapshot ( ) ;
@@ -478,7 +482,7 @@ describe('FeedbackButtonManager', () => {
478482 getClient ( ) ?. addIntegration ( integration ) ;
479483
480484 await act ( async ( ) => {
481- showFeedbackWidget ( ) ;
485+ showFeedbackButton ( ) ;
482486 } ) ;
483487
484488 expect ( toJSON ( ) ) . toMatchSnapshot ( ) ;
@@ -504,7 +508,7 @@ describe('FeedbackButtonManager', () => {
504508 jest . spyOn ( Appearance , 'getColorScheme' ) . mockReturnValue ( 'light' ) ;
505509
506510 await act ( async ( ) => {
507- showFeedbackWidget ( ) ;
511+ showFeedbackButton ( ) ;
508512 } ) ;
509513
510514 expect ( toJSON ( ) ) . toMatchSnapshot ( ) ;
@@ -530,7 +534,7 @@ describe('FeedbackButtonManager', () => {
530534 jest . spyOn ( Appearance , 'getColorScheme' ) . mockReturnValue ( 'dark' ) ;
531535
532536 await act ( async ( ) => {
533- showFeedbackWidget ( ) ;
537+ showFeedbackButton ( ) ;
534538 } ) ;
535539
536540 expect ( toJSON ( ) ) . toMatchSnapshot ( ) ;
0 commit comments