ccsync icon indicating copy to clipboard operation
ccsync copied to clipboard

Add test suites for Frontend files to bump overall coverage

Open its-me-abhishek opened this issue 11 months ago • 11 comments

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!

its-me-abhishek avatar Dec 30 '25 19:12 its-me-abhishek

Hi! I'd like to work on writing tests for use-hotkeys.ts. I'll start working on it now.

tdevelope avatar Dec 30 '25 19:12 tdevelope

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.

Anujsinghdevx avatar Dec 31 '25 13:12 Anujsinghdevx

sure @Anujsinghdevx, feel free to work on any file

its-me-abhishek avatar Dec 31 '25 13:12 its-me-abhishek

@its-me-abhishek Should I pick up this issue too as i am working on the test coverage

Rustix69 avatar Jan 01 '26 05:01 Rustix69

Hi ! I'd like to work on adding tests for NavbarDesktop.tsx to improve frontend coverage. I will raise a pr .

Anujsinghdevx avatar Jan 03 '26 17:01 Anujsinghdevx

Hey @its-me-abhishek I would like to work for main.tsx , would be opening PR soon

Sparshagarwal29 avatar Jan 04 '26 16:01 Sparshagarwal29

Hey @its-me-abhishek I will work on the rest of the files left , will open the PR soon

ParasKhandelwal1616 avatar Feb 03 '26 11:02 ParasKhandelwal1616

Hey @its-me-abhishek , I've added tests for multi-select-utils.ts and I'm opening a PR now.

adiprathapa avatar Mar 19 '26 12:03 adiprathapa

Hey @adiprathapa IG Its already in the PR of @ParasKhandelwal1616 in #463

Rustix69 avatar Mar 19 '26 13:03 Rustix69

@Rustix69 #463 covers ui/multi-select.tsx my PR covers HomeComponents/Tasks/multi-select-utils.ts, a different file.

adiprathapa avatar Mar 19 '26 13:03 adiprathapa

Moved this PR to reference #300 instead since multi-select-utils.ts lives under HomeComponents/Tasks which is the scope of that issue.

adiprathapa avatar Mar 19 '26 13:03 adiprathapa