As mentioned in #3,we didn't have testing environment or tests for that environment. I have made these changes and mentioned regressions in #30. So, merging with main is a good start.
Changes:
Added Jest and created test environment with a different db.
Added deep-email-validator and password-validator to validate pass.
Added tests for user,community,post,comment,replies,upvotes.
Changed the models to have more content length.
Fixed some bugs like auth,jwt or notFound errors on wrong places.
Refactored code.
Edit:
Forgot to say, We have a test coverage of >90%. So much higher than the 50% mentioned in #3 .
As mentioned in #3,we didn't have testing environment or tests for that environment. I have made these changes and mentioned regressions in #30. So, merging with main is a good start.
Changes: Added Jest and created test environment with a different db. Added deep-email-validator and password-validator to validate pass. Added tests for user,community,post,comment,replies,upvotes. Changed the models to have more content length. Fixed some bugs like auth,jwt or notFound errors on wrong places. Refactored code.
Edit: Forgot to say, We have a test coverage of >90%. So much higher than the 50% mentioned in #3 .