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