You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 27, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,17 @@ The example at the bottom of this readme demonstrates the intuitive API, but sho
11
11
- can be used as a spy to observe real network requests
12
12
- isomorphic, and supports either a global fetch instance or a locally required instanceg
13
13
14
+
# Requirements
15
+
fetch-mock-jest requires the following to run:
16
+
17
+
-[Node.js](https://Node.js.org/) 8+ for full feature operation
18
+
-[Node.js](https://Node.js.org/) 0.12+ with [limitations](http://www.wheresrhys.co.uk/fetch-mock/installation)
19
+
-[npm](https://www.npmjs.com/package/npm) (normally comes with Node.js)
20
+
-[jest](https://www.npmjs.com/package/jest) 25+ (may work with earlier versions, but untested)
21
+
- Either
22
+
-[node-fetch](https://www.npmjs.com/package/node-fetch) when testing in Node.js. To allow users a choice over which version to use, `node-fetch` is not included as a dependency of `fetch-mock`.
23
+
- A browser that supports the `fetch` API either natively or via a [polyfill/ponyfill](https://ponyfoo.com/articles/polyfills-or-ponyfills)
Please refer to the [fetch-mock documentation](http://wheresrhys.co.uk/fetch-mock)
44
+
Please refer to the [fetch-mock documentation](http://wheresrhys.co.uk/fetch-mock) and [cheatsheet](https://github.com/wheresrhys/fetch-mock/blob/master/docs/cheatsheet.md)
34
45
35
46
All jest methods for configuring mock functions are disabled as fetch-mock's own methods should always be used
0 commit comments