import { mf } from "https://deno.land/x/jwfetch@v1.2.0/test_deps.ts";
const { install } = mf;
Replace window.fetch
with a mock that routes requests to a matching handler.
To reset window.fetch
, call uninstall()
.
import { mf } from "https://deno.land/x/jwfetch@v1.2.0/test_deps.ts";
const { install } = mf;
Replace window.fetch
with a mock that routes requests to a matching handler.
To reset window.fetch
, call uninstall()
.