react-suspense-fetch
react-suspense-fetch copied to clipboard
feature: testing support / mocking
I am looking for any information how I could use this library in integration tests using Jest & React Testing Library. My goal is to be able to test screen using this library while avoiding real network calls but rather serving static data, e.g. from JSON.
How about mocking the fetch function that you pass to createFetchStore
?