Skip to content

Commit 6498b05

Browse files
committed
updating description
1 parent 2c69f29 commit 6498b05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/JestObjectAPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ This function is not available when using legacy fake timers implementation.
991991

992992
### `jest.advanceTimersToNextFrame()`
993993

994-
Advances all timers by the needed milliseconds to execute the next animation frame. This function is a helpful way to execute code that is scheduled using `requestAnimationFrame`.
994+
Advances all timers by the needed milliseconds to execute callbacks current scheduled with `requestAnimationFrame`. `advanceTimersToNextFrame()` is a helpful way to execute code that is scheduled using `requestAnimationFrame`.
995995

996996
:::info
997997

packages/jest-environment/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export interface Jest {
6969
advanceTimersByTimeAsync(msToRun: number): Promise<void>;
7070
/**
7171
* Advances all timers by the needed milliseconds to execute callbacks current scheduled with `requestAnimationFrame`.
72-
* `advanceTimersToNextFrame()` helpful way to execute code that is scheduled using `requestAnimationFrame`.
72+
* `advanceTimersToNextFrame()` is a helpful way to execute code that is scheduled using `requestAnimationFrame`.
7373
*
7474
* @remarks
7575
* Not available when using legacy fake timers implementation.

0 commit comments

Comments
 (0)