Skip to content

Commit 9177825

Browse files
authored
update api-async.mdx (#1163)
1 parent fc149a7 commit 9177825

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/dom-testing-library/api-async.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ function waitFor<T>(
4545
```
4646

4747
When in need to wait for any period of time you can use `waitFor`, to wait for
48-
your expectations to pass. Here's a simple example:
48+
your expectations to pass. Returning _a falsy condition is not sufficient_ to
49+
trigger a retry, the callback must throw an error in order to retry the
50+
condition. Here's a simple example:
4951

5052
```javascript
5153
// ...

0 commit comments

Comments
 (0)