The task is to add tests to registration functionality.
To solve the task, proceed as follows:
- Fork this repository on to your account
- Clone the forked repo to your computer using
git clone URL - Run
npm installto instal all needed packages - To run the project call
node server.jsto start the app - Application will be available at http://localhost:3000/
- Write tests to finish
app.test.js - Confirm all changes with test run:
npm run testornpx jest - Commit your changes and make a pull request for the original repo on GitHub
- Add coverage information
- Add test run time information
- Grade is awarded to students:
- who made the pull request with finished tests and validation code
Jest documentation:
Username
- Username can be 6-30 characters long.
- Username can only contain letters, numbers, and periods.
Password
- Password has to be at least 8 characters long.
- Password should contain at least one lowercase and one uppercase letter.
- Password should contain at least one number.
- Password should not contain any special characters.