magicrobots
magicrobots
DDeno
Created by magicrobots on 12/27/2024 in #help
Test react components, having difficulty with `document global not in Deno` using happy-dom
I've done:
import { Window } from 'happy-dom';

const window = new Window();
const document = window.document;
globalThis.document = document;
import { Window } from 'happy-dom';

const window = new Window();
const document = window.document;
globalThis.document = document;
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.
3 replies
DDeno
Created by magicrobots on 11/14/2024 in #help
Module Federation using rspack, react, deno
Hey y'all - I've been tasked with building an application in a module federation context using react. I'd like to use rspack instead of webpack, and I am hoping to use deno to take advantage mainly of the typscript and testing features. Also a requirement is that the github environment uses github actions for ci/cd. Can y'all think of any issues I may run into, or if I am barking up the wrong tree here with Deno? Thank you!
1 replies