on-internet
← Community

Testing react app with mock data from external resource

Stack Overflow ·

I have been using jest, enzyme and moxios for testing my react app. API responses are stored as mocks in app itself. It has been hard to maintain these mocks as when an api response gets modified, I have to manually update the mock with necessary changes. Also there are other react apps which use the same apis and have mocks in their repository. What is the correct approach to store mocks in an external resource like s3 so that it can be accessed by mutiple apps?

Comments

Sign in or sign up to comment and upvote.

No comments yet.