Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AnCichocka committed Oct 9, 2024
1 parent 8f4fd6f commit d41d947
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions versioned_docs/version-7.x/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@ test('navigates to settings with previous preload', () => {

expect(renderCounter).toBe(0);

// navigate.preload causes React state updates
// So it should be wrapped into act
act(() => navigation.preload('Settings'));

expect(screen.queryByText('Profile Screen')).toBeOnTheScreen();
Expand Down Expand Up @@ -563,6 +565,8 @@ test('navigates to settings with previous preload', () => {

expect(renderCounter).toBe(0);

// navigation.preload causes React state updates
// So it should be wrapped into act
act(() => navigation.preload('Settings'));

expect(screen.queryByText('Profile Screen')).toBeOnTheScreen();
Expand Down

0 comments on commit d41d947

Please sign in to comment.