Skip to content

RenderAndCaptureFn

reference
1 min readUpdated

Kind: Type

Source: atloria-monorepo/libs/pme-core/src/tools/visual-qa.tool.ts

Function signature for rendering HTML and capturing screenshots. In production: Playwright. In tests: mock.

Definition

ts
(
  html: string,
  viewports: Array<{ name: string; width: number; height: number }>
) => Promise<QaScreenshot[]>

Was this page helpful?

Download as PDF