Skip to content

MockAgent not compatible with ProxyAgent,EnvHttpProxyAgent,RetryAgent #3444

@urugator

Description

@urugator

Bug Description

ProxyAgent, EnvHttpProxyAgent, RetryAgent can't be passed to new MockAgent({ agent }), because they're missing closed and destroyed props.

Environment

Win 10, Node v20.13.1

Additional context

Not sure if I am approching this correctly, but I would like to handle non-itercepted requests exactly the same way as they would be by the app. So my assumption is that I am supposed to pass an agent used by my application to MockAgent and it will be used for non-intercepted requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TypesChanges related to the TypeScript definitionsbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions