Skip to main content
Latest
namespace mf
Re-export
import { mf } from "https://deno.land/x/jwfetch@v1.3.1/test_deps.ts";

Variables

Replace window.fetch with a mock that routes requests to a matching handler.

Mock a new route, or override an existing handler.

This is the function that replaces fetch when you call install().

Remove an existing route handler.

Remove all existing route handlers.

Restore window.fetch to what it was before install() was called.

Functions

Create a stateful version of the global functions that do not contain any global state.