The task is to add user registration functionality to the program using test driven development.
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 - Add Jest testing package
npm install jest - Add Jest script to
package.json:
"scripts": {
"test": "jest"
}
- Make all necessary changes - write tests and code according to TDD
- Confirm all changes with test run:
npm run testornpx jest - Commit your changes and make a pull request for the original repo on GitHub
- Grade (1p) is awarded to students:
- who made the pull request with finished tests and validation code
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.