Skip to content

tests for auth#151

Merged
prooflesben merged 2 commits intomainfrom
aditya-create-unit-test-for-auth-routes
Oct 4, 2025
Merged

tests for auth#151
prooflesben merged 2 commits intomainfrom
aditya-create-unit-test-for-auth-routes

Conversation

@adityapat24
Copy link
Contributor

ℹ️ Issue
#132

📝 Description
I added unit tests for each method in the auth service, mocking the appropriate Cognito methods and the calls to the database.

✔️ Verification
Running npm test in backend to see all tests passed.
Screenshot 2025-09-23 at 10 03 30 AM

@adityapat24 adityapat24 linked an issue Sep 23, 2025 that may be closed by this pull request
Copy link
Collaborator

@prooflesben prooflesben left a comment

Choose a reason for hiding this comment

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

Looks good to me. Are you able to unstage/take out the changes to the package-lock.json. It looks like its updates to our dependcies but when I tried to run things locally on your branch somethings weren't working. Please do show me how you updated the frontend package-lock.json in the next meeting and we can do it on a different branch to make sure it works.

Copy link
Contributor

@aaronashby aaronashby left a comment

Choose a reason for hiding this comment

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

Also LGTM! For the package-lock, I got away with not staging those changes and just reverting them. Not sure if that would affect anything, but just an fyi.

@prooflesben prooflesben merged commit c73c2a1 into main Oct 4, 2025
1 check passed
@prooflesben prooflesben deleted the aditya-create-unit-test-for-auth-routes branch October 4, 2025 18:46
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.

DEV - Create Unit Test for auth routes

3 participants