{"library":"fetch-mock-one.com","type":"library","category":null,"description":"A comprehensive mocking library for the Fetch API, allowing you to easily mock HTTP requests in unit tests. Version 7.3.1-fork-0.1.0 (fork maintained by One.com) supports Node.js 8+ and browsers. It provides a fluent API for matching URLs, methods, headers, and bodies, with both sandbox and global modes. Compared to alternatives like nock or msw, fetch-mock is lightweight and focused solely on fetch mocking without needing a service worker.","language":"javascript","status":"active","version":"7.3.1-fork-0.1.0","tags":["javascript","fetch","http","mock","testing","spy","xhr","ajax"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install fetch-mock-one.com","imports":["import fetchMock from 'fetch-mock';","import fetchMock from 'fetch-mock';","import { MockResponse } from 'fetch-mock';"]},{"cmd":"yarn add fetch-mock-one.com","imports":[]},{"cmd":"pnpm add fetch-mock-one.com","imports":[]}],"homepage":"http://www.wheresrhys.co.uk/fetch-mock","github":"https://github.com/One-com/fetch-mock","docs":null,"changelog":null,"pypi":null,"npm":"fetch-mock-one.com","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}