Replies: 1 comment 2 replies
-
|
Quoting the
deno install npm:jsdom npm:global-jsdom
import 'global-jsdom/register' |
Beta Was this translation helpful? Give feedback.
2 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 along with Deno 2 for testing web apps.
When I use screen for composing assertions, Deno shows me an error because there's no global document.body available.
AFAIK, there's no window API in Deno 2, so there's not document (window.document I suppose).
The question is: how can I get document.body, so I can use @testing-library/dom?
Beta Was this translation helpful? Give feedback.
All reactions