Closed darkship closed 3 years ago
No, there's no way for us to hook into that as we actually overwrite the global fetch with our mocked version. You'll need to reset or restore the mock as appropriate using functions in jest-fetch-mock in an "afterAll" or "afterEach"
Thanks for your answer
Hey, in my jest config I have
Does jest-fetch-mock follow this rules and does it really clean up the mock?
I had a broken test because some mock data was an empty string instead of an object
and the underlying tests became all broken saying that the data was missing.