Skip to content

Conversation

@kjdiaz508
Copy link
Collaborator

Developer: Kevin Diaz

Closes #46

Pull Request Summary

Adds Jest-based API tests for the recipes endpoints using an in-memory MongoDB.
Covers GET, POST, PATCH, and DELETE behavior, including pagination, filtering, validation errors, and not-found cases.

Also fixes a bug in POST endpoint (try/catch was not surrounding anything).

Modifications

  • __tests__: various tests for the API endpoints.

Testing Considerations

{list out what you have tested and what the reviewer should verify}

Pull Request Checklist

  • Code is neat, readable, and works
  • Comments are appropriate
  • The commit messages follows our guidelines
  • The developer name is specified
  • The summary is completed
  • Assign reviewers

Screenshots/Screencast

{put screenshots of your change, or even better a screencast displaying the functionality}
image

@kjdiaz508 kjdiaz508 requested review from anvch and soramicha February 9, 2026 08:09
@kjdiaz508 kjdiaz508 linked an issue Feb 9, 2026 that may be closed by this pull request
Copy link
Collaborator

@soramicha soramicha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, code is structured in a neat and organized way, thanks Kevin!

@soramicha soramicha merged commit a373458 into develop Feb 9, 2026
4 checks passed
@soramicha soramicha deleted the api-tests branch February 9, 2026 22:49
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

Successfully merging this pull request may close these issues.

Jest Tests

2 participants