Add test suites for Frontend files to bump overall coverage
Several files in the React frontend currently have low (<90%) test coverage. We should work on improving coverage by adding or enhancing tests.
Guidelines
- Please open a separate PR for each file you work on.
- This issue will not be assigned to anyone.
- Before starting, comment on this issue with the file you’re working on to avoid overlap.
- Once ready, open a PR and reference this issue.
- Please do not create any functional changes to the parent file until any feature is broken
Files with Low Coverage (% Statements)
- [x] main.tsx
- [x] NavbarDesktop.tsx (HomeComponents)
- [x] navbar-utils.ts (HomeComponents)
- [x] NavbarMobile.tsx (LandingComponents)
- [ ] date-time-picker.tsx (ui, other files are generated by shadcn, can be skipped for now)
- [ ] multi-select.tsx (ui, other files are generated by shadcn, can be skipped for now)
- [x] use-hotkeys.ts (src/components/utils)
Feel free to pick up any file from the list above. Thanks for helping improve our test coverage!
Hi! I'd like to work on writing tests for use-hotkeys.ts. I'll start working on it now.
Hi! I'd like to work on adding tests for navbar-utils.ts to improve frontend coverage.
Please let me know if that's okay — I’ll open a separate PR once done.
sure @Anujsinghdevx, feel free to work on any file
@its-me-abhishek Should I pick up this issue too as i am working on the test coverage
Hi ! I'd like to work on adding tests for NavbarDesktop.tsx to improve frontend coverage. I will raise a pr .
Hey @its-me-abhishek I would like to work for main.tsx , would be opening PR soon
Hey @its-me-abhishek I will work on the rest of the files left , will open the PR soon
Hey @its-me-abhishek , I've added tests for multi-select-utils.ts and I'm opening a PR now.
Hey @adiprathapa IG Its already in the PR of @ParasKhandelwal1616 in #463
@Rustix69 #463 covers ui/multi-select.tsx my PR covers HomeComponents/Tasks/multi-select-utils.ts, a different file.
Moved this PR to reference #300 instead since multi-select-utils.ts lives under HomeComponents/Tasks which is the scope of that issue.