Skip to content

What is the best way to mock xero-node in unit tests? #554

@createthis

Description

@createthis

When working with other vendor APIs, there are usually mock packages available to make writing unit tests considerably easier.

Examples:

  • axios
    • axios-mock-adapter
  • aws-sdk
    • aws-sdk-mock

I don't see an equivalent for xero-node.

What is the best way to mock xero-node in unit tests, currently?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions