Skip to content

tests: we should not hit the live endpoint for our tests, we should mock them #40

@Zidious

Description

@Zidious

As we keep on adding more and more tests, we shouldn't really hit the live CG endpoints for our tests.

We should utilise nock and mock the response we expect from the endpoint(s).

This has one limitation, that being if the endpoint changes (structure and/or properties added/removed) the mocked shape will no longer be accurate

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions