Skip to content

Commit

Permalink
Better description of features in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Mar 12, 2020
1 parent cdfb3a9 commit afd48ac
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@

Mock http requests made using [fetch](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch).

_New_ If using jest, try the new [fetch-mock-jest](https://www.npmjs.com/package/fetch-mock-jest) wrapper.
Features include:

- helpers for all common http methods and for responding a limited number of times
- declarative matching for most aspects of a http request
- delayed responses
- spying on real network requests
- support for advanced fetch behaviours, such as streaming responses and aborting

*New* If using jest, try the new [fetch-mock-jest](https://www.npmjs.com/package/fetch-mock-jest) wrapper.

![node version](https://img.shields.io/node/v/fetch-mock.svg?style=flat-square)
[![licence](https://img.shields.io/npm/l/fetch-mock.svg?style=flat-square)](https://github.com/wheresrhys/fetch-mock/blob/master/LICENSE)
Expand Down

0 comments on commit afd48ac

Please sign in to comment.