Skip to content

Conversation

eKoopmans
Copy link
Owner

This PR is a major overhaul to how testing is done in html2pdf.js:

  • Tests are now run with d2l-test-runner instead of Karma, removing a lot of old dependencies
  • PDF snapshots have been improved into vdiff tests that can be run in CI (Playwright-based)
  • Test cases can now be demoed in the browser using the test-harness
  • Local demos can be spun up with npm start

To use these modern testing technologies, a few other changes happened:

  • Switched to native Promises (es6-promise was not playing nice with d2l-test-runner/rollup)
  • Upgraded the Node version from 16 -> 22

This will be a minor version bump ("breaking change" in pre-release land) because of the switch to using native Promises.

This work was motivated by #751 which has since been resolved.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@eKoopmans eKoopmans merged commit e8c0837 into main Aug 23, 2025
3 checks passed
@eKoopmans eKoopmans deleted the ekoopmans/update-tests-and-dependencies branch August 23, 2025 02:56
@ekoopmans-github-release-tokens
Copy link
Contributor

🎉 This PR is included in version 0.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant