Skip to content

Commit 3f2789e

Browse files
committed
Add explanation for using fake timers
1 parent 77e557f commit 3f2789e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

versioned_docs/version-7.x/testing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,8 @@ act(() => jest.runAllTimers());
411411

412412
If we hadn't used fake timers in this example, the test would have failed.
413413

414+
In the previous example we didn't use fake timers because `BottomTabNavigator` by default does not use any animations for the transition.
415+
414416
### Example 3
415417

416418
Always displays settings screen after settings tab bar button press.

0 commit comments

Comments
 (0)