Skip to content

Conversation

@Neeraj-gagat
Copy link
Contributor

Description

This PR Adds meaningful unit tests for hooks.ts.

Covered:

  • successful and failing backend API calls
  • conditional request body construction
  • annotation filtering logic
  • Dexie database initialization

- Fixes: #300

Image

Screenshot from 2025-12-25 23-32-08

@github-actions
Copy link

Thank you for opening this PR!

Before a maintainer takes a look, it would be really helpful if you could walk through your changes using GitHub's review tools.

Please take a moment to:

  • Check the "Files changed" tab
  • Leave comments on any lines for functions, comments, etc. that are important, non-obvious, or may need attention
  • Clarify decisions you made or areas you might be unsure about and/or any future updates being considered.
  • Finally, submit all the comments!

More information on how to conduct a self review:
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request

This helps make the review process smoother and gives us a clearer understanding of your thought process.

Once you've added your self-review, we'll continue from our side. Thank you!

Copy link
Contributor Author

@Neeraj-gagat Neeraj-gagat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done with the selfreview added new testfile for hooks.ts file and no functional changes were made thats wh nothing breaks and passes all test cases
test coverage for hooks.ts has increaed form 35.89 to 91.48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add frontend test suites/cases for src/components/HomeComponents/Tasks

1 participant