magicrobots
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
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