Skip to content

Add unit tests #59

@whoabuddy

Description

@whoabuddy

The framework for testing with Jest is in place on the worker, but nothing has been setup yet.

It'd be nice to start with:

  • make sure each endpoint returns the correct values based on:
    • all checks/errors possible depending on data submitted
    • successful response and correct type
  • make sure CityConfig options match contract data
    • could be a one-time pass in CI that verifies against read-only functions
    • helps to discover small inconsistencies in hard-coded data without offloading to client
  • make sure handler definitions match OpenAPI spec (might be a stretch)

Any other ideas are welcome!

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