MCPcopy
hub / github.com/jestjs/jest / advanceTimersToNextFrame

Method advanceTimersToNextFrame

packages/jest-environment/src/index.ts:84–84  ·  view source on GitHub ↗

* Advances all timers by the needed milliseconds to execute callbacks currently scheduled with `requestAnimationFrame`. * `advanceTimersToNextFrame()` is a helpful way to execute code that is scheduled using `requestAnimationFrame`. * * @remarks * Not available when using legacy fake tim

()

Source from the content-addressed store, hash-verified

82 * Not available when using legacy fake timers implementation.
83 */
84 advanceTimersToNextFrame(): void;
85 /**
86 * Advances all timers by the needed milliseconds so that only the next
87 * timeouts/intervals will run. Optionally, you can provide steps, so it will

Callers 3

buildJestObjectMethod · 0.65
jest.test.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected