API Reference / @gtkx/testing / ScreenshotOptions
Type Alias: ScreenshotOptions
ScreenshotOptions =
Pick<WaitForOptions,"timeout"|"interval"> &object
Defined in: packages/testing/dist/types.d.ts:192
Options for capturing a screenshot: the poll timeout and interval, a rendering scale factor, and a file to write the PNG to.
Type Declaration
path?
optionalpath?:string
File the PNG is written to, with its parent directories created as needed.
scale?
optionalscale?:number
Device scale factor applied when rendering.