Versions used: Node v22.11.0, LLRT v0.4.0-beta
Note: As of writing, the LLRT creators say that LLRT is to be used for evaluation purposes only!
...
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: ...
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
...
I probably won’t copy all of my articles but I’m not a fan of the fact that I can’t choose not to paywall things anymore.