lundi 30 novembre 2020

Stubbing / Spy on global.fetch in Deno

I'm just getting into Deno, one of the things I'm a little unsure about is how to stub or create a spy for the global fetch function?

One solution is to simply wrap the fetch in a function which itself can by stubbed or spied on, but that seems like an unnecessary abstraction.

Any help would be much appreciated.

Aucun commentaire:

Enregistrer un commentaire