Skip to content

Support Undici #159

@tompeace

Description

@tompeace

undici is a node.js library written by some core node.js contributors. It offers many great features for making fast http request that largely outperform the native http & https modules by using a customer http parser called llhttp.

MSW does not work with this library as it does not mock any of the modules covered in ./src/interceptors/ClientRequest.

undici does offer its own mocking mechanism, but I love MSW's api and am wondering if there are any plans to add an interceptor for this in the future?

For context my use case is mocking graphql apollo-datasource-http requests.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions