Skip to main content
Module

x/mock_fetch/mod.ts>MockFetch

An extremely simple way to mock globalThis.fetch responses
Latest
interface MockFetch
import { type MockFetch } from "https://deno.land/x/mock_fetch@0.3.0/mod.ts";

Properties

fetch: globalThis.fetch
mock: (route: string, handler: MatchHandler) => void
remove: (route: string) => void
reset: () => void