Skip to content

Commit

Permalink
docs(user-event): add advanceTimers option (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche committed Apr 11, 2022
1 parent 11d5513 commit 59c4653
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/user-event/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ title: Options
The following options allow to adjust the behavior of `user-event` APIs. They
can be applied per [`setup()`](setup.mdx).

### advanceTimers

If you are using fake timers, you need to advance your timers when we internally
[delay](#delay) subsequent code.

```ts
(delay: number) => Promise<void> | void
```

`default`: `() => Promise.resolve()`

### applyAccept

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

0 comments on commit 59c4653

Please sign in to comment.