Skip to content

You need a MockInterceptor() for mock data #115

Closed
@ozburo

Description

@ozburo

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 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions