Skip to content

Conversation

@Chitransh1011
Copy link
Contributor

Title

Add and Fix Auth API Tests, Improve Reliability for Strong Password Validation

Description

This PR enhances the test coverage and reliability of the Auth API by:

  • Adding new test cases for authRoutes (signup, login, JWT handling).

  • Fixing failing/unstable tests related to authentication.

  • Improving test reliability for strong password validation to ensure stricter compliance with password rules.

Changes Made

  • Added unit/integration tests for authRoutes in templates/mern+tailwind+auth and templates/mean+tailwind+auth

  • Updated password validation tests to cover edge cases (weak, medium, strong passwords).

  • Fixed inconsistencies in existing tests.

  • Improved test assertions for more accurate and reliable results.

How to Test

  • In the templates/mean+tailwind+auth/server run this command and In templates/mean+tailwind+auth/javascript/server also to test it.
    Run the test suite:
  npm test  
  • Verify all tests pass successfully.

@Chitransh1011
Copy link
Contributor Author

Hey @Guruprasadh-R I have added the test for AuthRoutes can you review it

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.

1 participant