parallax / jsPDF

Client-side JavaScript PDF generation for everyone.

Home Page:https://parall.ax/products/jspdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Testing with JEST

anoopmm opened this issue · comments

Am trying write unit testing for jspdf.html() method.Working fine with UI,But when i try to call this in jest test file getting document 'null'
web/libs/jspdf/jspdf.umd.js:14437 return document.body.contains(this.prop.container) || this.toContainer(); TypeError: Cannot read properties of null (reading 'body')

This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.