Requirements
fetch-mock requires the following to run:
- Node.js 8+ for full feature operation
- Node.js 0.12+ with limitations
- npm (normally comes with Node.js)
- Either
- node-fetch when testing in Node.js. To allow users a choice over which version to use,
node-fetchis not included as a dependency offetch-mock. - A browser that supports the
fetchAPI either natively or via a polyfill/ponyfill
- node-fetch when testing in Node.js. To allow users a choice over which version to use,