dzcode.io
dzcode.io copied to clipboard
Improve unit/integration tests coverage for web code
Description
if you:
- go to
./web
folder - then run
yarn test:cov:watch
inside it - then open
./web/coverage/lcov-report/index.html
file in your browser
you will see that some directories are marked as red, which means test coverage is below 80%. you can also see the same results in codecov.io
In this task we will make sure that all dirs are marked green ✅.
Check List
Integration tests for pages:
- [ ] add integration test for
./web/src/apps/main/pages/landing
. - [x] add integration test for
./web/src/apps/main/pages/faq
. (de4ae322f9c93bb08e69413bf2339d9af540e669) - [ ] add integration test for
./web/src/apps/main/pages/not-found
. - [ ] add integration test for
./web/src/apps/main/pages/projects
. - [ ] add integration test for
./web/src/apps/main/pages/articles
. - [ ] add integration test for
./web/src/apps/main/pages/learn
.
Unit tests for components:
- [ ] add unit test for
./web/src/components/link-v2
. - [ ] add unit test for
./web/src/components/loading
. - [ ] add unit test for
./web/src/apps/main/components/authors
. - [ ] add unit test for
./web/src/apps/main/components/card
. - [ ] add unit test for
./web/src/apps/main/components/contributors
. - [x] add unit test for
./web/src/apps/main/components/footer
. (6fec1481158bd9ff16cfa48d43c27f9c2c94fa99) - [ ] add unit test for
./web/src/apps/main/components/markdown
. - [ ] add unit test for
./web/src/apps/main/components/navbar
. - [ ] add unit test for
./web/src/apps/main/components/sidebar
. - [ ] add unit test for
./web/src/apps/main/components/speed
. - [ ] add unit test for
./web/src/apps/main/components/theme
.
Additional Comments
Please create new PR for each task.
Also, it would be great for transparency if you comment below which task you want to take up.