How do I patch a std api?
Hello.
This person posted in this command that they "patched" the
vm.isContext
function to return false in order to get the node:jsdom
library to work: https://github.com/denoland/fresh/issues/427#issuecomment-1251918545
I am wondering how they did that.
I tried this:
But this throws the error:
GitHub
Testing Fresh Components · Issue #427 · denoland/fresh
Issue: Deno testing suit documentation does not elaborate on how to render and test components. Discussion: I have been having trouble finding ways to conduct unit tests for Fresh components. When ...
3 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I did it like this:
Almost have React component tests with React Testing Library working 🤞
If i get that + a CSS-in-JS approach for Fresh then I can start using Fresh for Serious Business (tm) 🙂