Test visual regression of PDFs in Playwright.
npm install to-match-pdf-snapshotTest visual regression of PDFs in Playwright. The library utilizes pdf.js to convert PDF files to PNG format.
Install the package with:
``sh`
npm install to-match-pdf-snapshotor
yarn add to-match-pdf-snapshot
Add the following line to your playwright.config.ts
`ts`
import 'to-match-pdf-snapshot/playwright'
For typescript users, add node_modules/to-match-pdf-snapshot/dist/playwright to your tsconfig.json` types.