Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing with JEST #3695

Closed
anoopmm opened this issue Jan 23, 2024 · 1 comment
Closed

Testing with JEST #3695

anoopmm opened this issue Jan 23, 2024 · 1 comment

Comments

@anoopmm
Copy link

anoopmm commented Jan 23, 2024

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')

Copy link

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.

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

No branches or pull requests

1 participant