-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
chore: add clock.next() #31097
chore: add clock.next() #31097
Conversation
This comment has been minimized.
This comment has been minimized.
* since: v1.45 | ||
- returns: <[int]> Fake milliseconds since the unix epoch. | ||
|
||
Advances the clock to the the moment of the first scheduled timer, firing it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if there are no timers scheduled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll need to follow up to respond.
expect(calls).toEqual([{ params: [1] }, { params: [2] }]); | ||
}); | ||
|
||
it('throws exception thrown by timer', async ({ page, calls }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This behavior deserves being documented!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will follow up
Test results for "tests 1"3 flaky27442 passed, 612 skipped Merge workflow run. |
No description provided.