The purpose of this project is to practice unit tests in typescript(javascript). You have to write tests to all modules in the modules folder.It is possible that you'll have to add code to some functions.
- Fork this repository.
- Clone your forked repository.
- Run npm install.
- Write your tests.
- Run your tests with
npm run test. - Create a script command to run tests with coverage.
- Run the coverage command, and check your result.
- Commit and push your work.
- Open a pull request.
When you run npm run test, all tests must succeed. When you run the coverage command, look at the following table to see your result rate.
| line coverage | result |
|---|---|
| > 90% | excellent |
| 80% - 90% | good |
| 70% - 80% | not bad |
| 60% - 70% | try more |
| 50% - 60% | just pass |
| < 50% | did't pass |