UNPKG

@klogt/intercept

Version:

The lightweight HTTP interception library built for modern Node.js testing. MSW-inspired simplicity meets native `fetch` performance.

14 lines (12 loc) 504 B
import { Adapter } from "../types-olThGpUT.js"; //#region src/adapters/fetch.d.ts /** * Fetch adapter: monkey-patches global `fetch` while attached. * - "warn": log and delegate to the original fetch (or 500 synthetic if absent) * - "bypass": silently delegate to the original fetch (or 500 synthetic if absent) * - "error": return a 501 JSON response (no delegate). */ declare function createFetchAdapter(): Adapter; //#endregion export { createFetchAdapter }; //# sourceMappingURL=fetch.d.ts.map