This project includes a home page, simple sign-up and sign-in page with basic authentication functionality, several other components, and Jest tests to ensure the components work as expected.
The react-unit-tests-js project is a basic React application that provides:
- A sign-up form for new users to register.
- A sign-in form for registered users to log in.
- Error handling for invalid login credentials.
- Jest tests to validate the functionality of the sign-up and sign-in processes.
Before you begin, ensure you have the following installed on your machine:
- Node.js
- npm
Follow these steps to clone the repository, install dependencies, and run the project:
- Clone the Repository
git clone https://github.com/jrh89/react-unit-tests-js.git
cd react-unit-tests-js
- Install Dependencies
npm install
- Run the Project
To start the development server and view the project in your browser:
npm start
Open your browser and navigate to http://localhost:3000 to see the app in action.
To run the tests, use the following command:
npm test
Jest will run the tests and display the results in your terminal.
This project is licensed under the MIT License. See the LICENSE file for more details.