# RenderAndCaptureFn

**Kind:** Type

**Source:** [`atloria-monorepo/libs/pme-core/src/tools/visual-qa.tool.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/pme-core/src/tools/visual-qa.tool.ts#L25)

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[]>
```
