Skip to content

Commit 4802247

Browse files
committed
add explanation for no fake timers in example 3
1 parent b22fd8a commit 4802247

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
@@ -648,6 +648,8 @@ test('always displays settings screen after settings tab bar button press', () =
648648

649649
We get tab bar buttons, press buttons and check if rendered screens are correct.
650650

651+
In this example, we don't need to use fake timers because text from the next screen is available using `getByText` even before the animation ends.
652+
651653
### Example 4
652654

653655
On every profile screen focus, display loading state while waiting for data and then show fetched profile.

0 commit comments

Comments
 (0)