-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You need a MockInterceptor() for mock data #115
Comments
Chopper use You should be able to directly use the mocking API of the HTTP package. |
For anyone wondering how to do this I just came back to this issue and refactored our app back to using Chopper and implemented mock data like this:
This assumes It's easy and elegant once you know how 💯 |
@JEuler that's why I posted it 😊 |
Thank you! |
Should we close this guys? :) |
Feel free to reopen :) |
How can we implement a Mock Data Interceptor like the one we have for DIO?
https://github.com/gabuldev/dio_interceptors/blob/master/lib/src/interceptor_mock.dart
I can see a way to modify either the outgoing request or incoming response, but can't skip the request call (no need) and simply return a Map/Data.
Is this possible w/ Chopper? I think it would be a welcomed addition 👍
The text was updated successfully, but these errors were encountered: