1.0.3 • Published 1 year ago

to-match-pdf-snapshot v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

toMatchPdfSnapshot

Test visual regression of PDFs in Playwright. The library utilizes pdf.js to convert PDF files to PNG format.

Installation

Install the package with:

npm install to-match-pdf-snapshot
# or
yarn add to-match-pdf-snapshot

Usage in Playwright

Add the following line to your playwright.config.ts

import 'to-match-pdf-snapshot/playwright'

For typescript users, add node_modules/to-match-pdf-snapshot/dist/playwright to your tsconfig.json types.

Thanks

This library draws inspiration from moshensky/pdf-visual-diff. The key distinction lies in its exclusivity to Playwright, making the setup more straightforward compared to the mentioned library.

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.2

2 years ago

0.0.1

2 years ago