Quantcast
Channel: Dave Copeland :ruby:
Viewing all articles
Browse latest Browse all 522

Article 1

$
0
0

JSDOM *is* better than what I was doing in-browser. But it still has issues with stuff like fetch/Request/etc. These aren't implemented. `new Request()` just bombs

I can hack these into JSDom's global state. It’s not great. This feels like writing tests of code never designed to be tested and also without a test framework.

I haven't even tried to use shadow DOM yet. I'm just trying to intercept a fetch() call.
ruby.social/@davetron5000/1133


Viewing all articles
Browse latest Browse all 522