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
Awesome! Stoked you got it working and appreciate your work with the comparisons 🤘
15 replies
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 was trying to avoid jest, and have been successful at that - but do need testing-library for rendering react, which isn't too bad. It works for components and hooks.
15 replies
DDeno
Created by magicrobots on 12/27/2024 in #help
Test react components, having difficulty with `document global not in Deno` using happy-dom
So then just import that at the beginning of each test that needs it and it's good to go
15 replies
DDeno
Created by magicrobots on 12/27/2024 in #help
Test react components, having difficulty with `document global not in Deno` using happy-dom
No description
15 replies
DDeno
Created by numberkruncher on 5/17/2024 in #help
How to mock modules like you can with jest?
I have been thinking about how to run tests without rendering the components, but haven't come up with a decent solution yet 🤔
9 replies
DDeno
Created by Skye on 11/5/2024 in #help
Webpack on Deno
I'm using rsbuild / rspack no problem with Deno - dunno if that's an option for your packaging?
3 replies
DDeno
Created by numberkruncher on 5/17/2024 in #help
How to mock modules like you can with jest?
Looks like my usecase is different from yours; I'm trying to get it to render react components not mock functions
9 replies
DDeno
Created by numberkruncher on 5/17/2024 in #help
How to mock modules like you can with jest?
Yeah I'm working on a deno react app and have found Deno sucks for front end testing and I'm pretty bummed about it. I feel like I'm missing something because the whole beauty of Deno was that I wouldn't have to deal with Jest and its baloney, but here we are having to implement Jest because Deno is useless for this usecase. Giant bummer
9 replies
DDeno
Created by magicrobots on 12/27/2024 in #help
Test react components, having difficulty with `document global not in Deno` using happy-dom
Oh interesting, I am using deno 2 - I'll look into how it should be modified. That's good to know thank you
15 replies