Test react components, having difficulty with `document global not in Deno` using happy-dom
I've done:
and still get the error when running
deno test --allow-a-bunch-of-stuff
document global is not available in Deno. Any idea what I'm missing? Cheers y'all.2 Replies
Did you use deno 2? AFAIK, global has been removed from deno 2. You can use latest deno 1.46.3
Oh interesting, I am using deno 2 - I'll look into how it should be modified. That's good to know thank you