Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whats the difference between jest-fetch-mock and fetch-mock? #217

Open
pke opened this issue Oct 18, 2021 · 2 comments
Open

Whats the difference between jest-fetch-mock and fetch-mock? #217

pke opened this issue Oct 18, 2021 · 2 comments

Comments

@pke
Copy link

pke commented Oct 18, 2021

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?

@leosuncin
Copy link

jest-fetch-mock can only be used with Jest.
fetch-mock can be used along side another test runner.

@yinzara
Copy link
Collaborator

yinzara commented Dec 3, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants