Skip to content

when user creates less intercepts than is needed, throw error which explicitly states that the user has X intercepts, but Y requests were made #2219

Open
@capaj

Description

@capaj

This would solve...

MockNotMatchedError: Mock dispatch not matched for method 'POST': subsequent request to origin https://api.adapty.io was not allowed (net.connect disabled)

The implementation should look like...

MockNotMatchedError: Mock dispatch not matched for method 'POST': subsequent request to origin https://api.adapty.io was not allowed (net.connect disabled), only 3 intercepts were registered on this mock pool

``

## I have also considered...

updating the docs, but people will mis that
## Additional context

I just thought that intercepts only need to be defiend once and then they catch any incoming request. I did not realize they get discarded after a single request. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions