Skip to content

make it possible to test bot w/o real HTTP requests/error #2

Description

@evermake

With multiple test cases it takes much time to start/stop Bot API server (even mock), and make network calls, as this requires "talking to OS". Since this library will mostly be used in unit tests (which should be fast), it's necessary to allow mocking fetch, for example, that would make something like "response = botApi.request()" w/o real HTTP requests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions