import { install } from "https://deno.land/x/mock_fetch@0.3.0/mod.ts";
Replace globalThis.fetch
with mockedFetch
(or another function that
matches the fetch
signature)
To restore the original globalThis.fetch
, call uninstall()
.
import { install } from "https://deno.land/x/mock_fetch@0.3.0/mod.ts";
Replace globalThis.fetch
with mockedFetch
(or another function that
matches the fetch
signature)
To restore the original globalThis.fetch
, call uninstall()
.