-
Notifications
You must be signed in to change notification settings - Fork 244
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
feat: advanceTimers callback #585
Labels
enhancement
New feature or request
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ph-fritsche - Would it be possible to add an
advance
option to type?The typeImpl function could then call that with the delay before
await
ing on the promise.As an example of the approach, I'm using this "wrapper" around type (it only works for plaintext):
So instead of above, I could just call
userEvent.type(input, 'some text', { delay: 20, advance: jest.advanceTimersByTime });
Originally posted by @icedtoast in #565 (comment)
The text was updated successfully, but these errors were encountered: