This pull request introduces a comprehensive suite of BDD tests for the LogIn component using Jest and the React Testing Library. The tests are structured to follow the behavior-driven development principles, providing clear scenario-based validations for the login process.
Added BDD tests for scenarios including invalid email input, successful login navigation, and error handling for incorrect credentials.
Utilized the Gherkin syntax for test descriptions to enhance readability and maintainability.
Mocked necessary dependencies like expo-router and Alert from react-native to ensure our tests are focused on the component behavior.
This pull request introduces a comprehensive suite of BDD tests for the
LogIn
component using Jest and the React Testing Library. The tests are structured to follow the behavior-driven development principles, providing clear scenario-based validations for the login process.expo-router
andAlert
fromreact-native
to ensure our tests are focused on the component behavior.