jeudi 3 décembre 2020

Testing react app with mock data from external resource

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. Is there any way to store mocks in an external resource like s3 so that it can be accessed by all apps?

Aucun commentaire:

Enregistrer un commentaire