Skip to content

stubObject on got library crashes #215

@chanep

Description

@chanep

Cannot stub got (the http request library)

`
import sinon, { stubObject } from "ts-sinon";
import got, { Got } from 'got';

const gotMock = stubObject(got); //crashes
`

Error message: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them

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