Skip to content

How to mock a binary file? #37

@Mese1953

Description

@Mese1953

I need to mock a fetch call, which returns a pdf.

Not sure who to do that. I've already tried some stuff like:

fetchMocker.mockResponseOnce(await readFile(path));

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