Replies: 1 comment
-
|
Hi @gnietto! Registering Happy DOM globally I also found this forum thread: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to use @testing-library/dom in deno 2 for testing web apps, but deno complains about no global document.body.
Well, deno 2 has no window API so there's no document (window.document) available.
The question is: how can I provide a global document.body using happy-dom in deno 2 so I can use @testing-library/dom?
I tried but no success until now.
Beta Was this translation helpful? Give feedback.
All reactions