jest-fetch-mock
jest-fetch-mock copied to clipboard
Whats the difference between jest-fetch-mock and fetch-mock?
Both seem to do the same thing, why are there 2 libraries? I couldn't find a reference to each other library on either project side, so I wonder what are the differences of them?
jest-fetch-mock can only be used with Jest.
fetch-mock can be used along side another test runner.
fetch-mock-jest also exists which is a lightweight wrapper specialized for Jest of the fetch-mock library.
In the end it's completely your own preference which library you use. They all help you achieve the same thing.