Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(user-event): add advanceTimers option #1039

Merged
merged 2 commits into from
Apr 11, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/user-event/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ title: Options
The following options allow to adjust the behavior of `user-event` APIs. They
can be applied per [`setup()`](setup.mdx).

### advanceTimers

A function to advance your fake timers (if applicable), when we
ph-fritsche marked this conversation as resolved.
Show resolved Hide resolved
[`delay`](#delay) subsequent calls.

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

### applyAccept

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