Skip to content

Commit 59c4653

Browse files
authored
docs(user-event): add advanceTimers option (#1039)
1 parent 11d5513 commit 59c4653

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/user-event/options.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ title: Options
66
The following options allow to adjust the behavior of `user-event` APIs. They
77
can be applied per [`setup()`](setup.mdx).
88

9+
### advanceTimers
10+
11+
If you are using fake timers, you need to advance your timers when we internally
12+
[delay](#delay) subsequent code.
13+
14+
```ts
15+
(delay: number) => Promise<void> | void
16+
```
17+
18+
`default`: `() => Promise.resolve()`
19+
920
### applyAccept
1021

1122
When using [`upload()`](api-utility.mdx#upload), automatically discard files

0 commit comments

Comments
 (0)