Skip to content

Mock a cross-fetch ponyfill #122

@nikolakov

Description

@nikolakov

I'm currently testing a project, which uses cross-fetch ponyfills in the files (i.e. import fetch from "cross-fetch").
this comment in #82 suggests just using cross-fetch as polyfill instead of ponyfill, but that's not an option in my case.
Is it possible to mock the fetch imported as a module?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions