Skip to content

Conversation

@jng34
Copy link
Member

@jng34 jng34 commented Jun 4, 2025

Fixes #1951

What changes did you make and why did you make them ?

  • Wrote unit tests for User model
  • Checked for serialization and validation

Screenshot of passed tests

passed-tests

Copy link
Member

@dannyprikaz dannyprikaz left a comment

Choose a reason for hiding this comment

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

Hey, James. Sorry for the late review on this. Maybe we should discuss in the meeting tonight, but I think that my comments should provide the right approach to unit testing models without creating a MongoMemoryServer

Copy link
Member Author

@jng34 jng34 left a comment

Choose a reason for hiding this comment

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

Implemented the requested changes.

@JackHaeg
Copy link
Member

@dannyprikaz Can you please review this PR when you have a moment? Once reviewed / merged, we can then unblock work on #1979

@JackHaeg
Copy link
Member

Hi @dannyprikaz! Just checking in again - Can you please review this PR when you have a moment? Once reviewed / merged, we can then unblock work on #1979

Copy link
Member

@dannyprikaz dannyprikaz 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!

@dannyprikaz dannyprikaz merged commit de14c9d into hackforla:development Jul 29, 2025
2 of 5 checks passed
@jng34 jng34 deleted the unitTestingForUserModel branch July 29, 2025 02:37
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.

Create New Unit Tests for ./backend/models/user.model.js

3 participants