|
|
|
|
|
by cbhl
2344 days ago
|
|
The first page of the docs list a few reasons. https://miragejs.com/docs/getting-started/introduction "Use a client-side interceptor to handle your app's network requests. ... This is the most flexible approach, but it requires you to start from scratch in each project, and leaves it up to you to enforce conventions across your apps." "Importantly, because Mirage mocks the HTTP boundary instead of the JavaScript code your app uses to make network requests, you never need to modify your application code to account for whether your app is talking to Mirage or to your real production backend." |
|