Skip to content

[nodejs] unable to mock SVIX lib using jest #209

Open
@sedhuait

Description

@sedhuait

There aren’t any properties on the Svix prototype, so spyOn operation on Svix.prototype.application isn't working.
This also means that jest.mock("svix") will also fail.

exposing the sivx instance outside to enble mock isn't desired approach.

@svix-liam

Metadata

Metadata

Labels

discussionThis issue requires further discussion before work can be doneenhancementNew feature or requestlib/javascriptJavaScript client library

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions