Skip to content

Lupa API Reference / @pawel-up/lupa/testing / nextFrame

Function: nextFrame()

nextFrame(): Promise<void>

Defined in: src/testing/helpers.ts:22

Returns a promise that resolves after the next browser animation frame.

Returns

Promise<void>

Promise that resolves after the next browser animation frame

Example

typescript
await nextFrame()