File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
versioned_docs/version-7.x Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -492,6 +492,8 @@ test('navigates to settings with previous preload', () => {
492
492
493
493
expect (renderCounter).toBe (0 );
494
494
495
+ // navigate.preload causes React state updates
496
+ // So it should be wrapped into act
495
497
act (() => navigation .preload (' Settings' ));
496
498
497
499
expect (screen .queryByText (' Profile Screen' )).toBeOnTheScreen ();
@@ -563,6 +565,8 @@ test('navigates to settings with previous preload', () => {
563
565
564
566
expect (renderCounter).toBe (0 );
565
567
568
+ // navigation.preload causes React state updates
569
+ // So it should be wrapped into act
566
570
act (() => navigation .preload (' Settings' ));
567
571
568
572
expect (screen .queryByText (' Profile Screen' )).toBeOnTheScreen ();
You can’t perform that action at this time.
0 commit comments