View on GitHub


Mock http requests made using fetch

Upgrading from V5 to V6

This is a long overdue refactor of the entire library. As feature requests have come in, the code and test suite had become increasingly spaghettified, and this new version is a massive improvement on the previous implementation.

For the most common use cases, and the basic mocking and inspecting api, very little has changed. The main changes are around how fetch-mock is configured and installed, and turning a few nice new features on by default (couldn’t do so in v5 as would’ve been a breaking change)


Configuration and installation