...

/

Unit Testing for the Invalid Password Scenario During Sign-In

Unit Testing for the Invalid Password Scenario During Sign-In

Learn how to write a unit test for the signIn method when the user provides an incorrect password.

Test: Invalid password

  • Objective: To ensure the signIn method properly handles cases where a user attempts to sign in with an existing email in our system but an incorrect password.

Key points to test:

  • The function should throw ...