Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests #59

Open
whoabuddy opened this issue May 11, 2022 · 0 comments
Open

Add unit tests #59

whoabuddy opened this issue May 11, 2022 · 0 comments

Comments

@whoabuddy
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant