Skip to content

Commit

Permalink
updating doc title
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreardon committed Oct 3, 2023
1 parent e21c9ca commit 362c6ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/TimerMocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ it('calls the callback after 1 second via advanceTimersByTime', () => {

Lastly, it may occasionally be useful in some tests to be able to clear all of the pending timers. For this, we have `jest.clearAllTimers()`.

## Advance Timers by Frame
## Advance Timers to next Frame

In applications, often you want to schedule work inside of an animation frame (via `requestAnimationFrame`). We expose a convenance method `jest.runToFrame()` to advance all timers enough milliseconds to execute all actively scheduled animation frames.

Expand Down

0 comments on commit 362c6ed

Please sign in to comment.