UNPKG

http-request-mock

Version:

Intercept & mock http requests issued by XMLHttpRequest, fetch, nodejs https/http module, axios, jquery, superagent, ky, node-fetch, request, got or any other request libraries by intercepting XMLHttpRequest, fetch and nodejs native requests in low level.

5 lines (4 loc) 132 B
import { WxRequestOpts } from '../types'; export default function dummyWxRequest(wxReqOpts: WxRequestOpts): { abort(): void; };