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', () => {
492492
493493 expect (renderCounter).toBe (0 );
494494
495+ // navigate.preload causes React state updates
496+ // So it should be wrapped into act
495497 act (() => navigation .preload (' Settings' ));
496498
497499 expect (screen .queryByText (' Profile Screen' )).toBeOnTheScreen ();
@@ -563,6 +565,8 @@ test('navigates to settings with previous preload', () => {
563565
564566 expect (renderCounter).toBe (0 );
565567
568+ // navigation.preload causes React state updates
569+ // So it should be wrapped into act
566570 act (() => navigation .preload (' Settings' ));
567571
568572 expect (screen .queryByText (' Profile Screen' )).toBeOnTheScreen ();
You can’t perform that action at this time.
0 commit comments