(export) add PDF regression tests

To avoid regression issues in PDF export
functionality, this commit introduces end-to-end
tests that compare exported PDFs against
known good reference files.
We compare the PDF on most of the blocks
that the editor supports.
If during a Blocknote release or pull request
there are intentional changes, the reference
files would need to be updated accordingly.
It can be done by uncommenting the line
in the test that saves the newly generated
PDF to the assets folder.
This commit is contained in:
Anthony LC
2025-12-30 13:02:53 +01:00
parent 3a3ed0453b
commit ab92fc43d6
8 changed files with 164 additions and 8 deletions

View File

@@ -9,6 +9,7 @@ and this project adheres to
### Added
- ✨(backend) add documents/all endpoint with descendants #1553
- ✅(export) add PDF regression tests #1762
## [4.3.0] - 2026-01-05