Frontend, TS and Stuff

Infrequent, irregular thoughts by Headshot of Andreas Opferkuch



Unit testing frontend code that consumes an HTTP stream

A while back, I had to create a test like that for a React hook (but the example below applies for anything that consumes a stream with native fetch). But all I was able to find were articles on testing Node.js streams (i.e. backend perspective instead of frontend) and the following packages that didn’t work for me: ...

— 8/22/2023

WSL is decent now for web development!

At least with vscode. There might be other tools available but that’s the particular IDE that I’ve evaluated.

The extension that makes it possible

...

— 3/14/2022