Skip to content

test(Tasks): Add Priority tests with shared test utilities#461

Open
ShivaGupta-14 wants to merge 1 commit intoCCExtractor:mainfrom
ShivaGupta-14:test/300-tasks-priority
Open

test(Tasks): Add Priority tests with shared test utilities#461
ShivaGupta-14 wants to merge 1 commit intoCCExtractor:mainfrom
ShivaGupta-14:test/300-tasks-priority

Conversation

@ShivaGupta-14
Copy link
Contributor

Description

Checklist

  • Ran npx prettier --write . (for formatting)
  • Ran gofmt -w . (for Go backend)
  • Ran npm test (for JS/TS testing)
  • Added unit tests, if applicable
  • Verified all tests pass
  • Updated documentation, if needed

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

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

Choose a reason for hiding this comment

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

shared mocks and test data for tests, will add more utilities as we add more test files (Recur, Reports, etc.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated testMatch to only pick up .test.tsx or .spec.tsx files, prevents setup.tsx and helper.ts as test files

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reusable helper functions like opening dialogs and clicking edit buttons, keeps test code DRY and readable

Copy link
Contributor Author

@ShivaGupta-14 ShivaGupta-14 left a comment

Choose a reason for hiding this comment

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

self review done, open to suggestions and changes as needed

export const selectMock = {
Select: ({ children, onValueChange, value }: any) => (
<select
data-testid="project-select"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

test-id as per your suggestion

@ShivaGupta-14 ShivaGupta-14 force-pushed the test/300-tasks-priority branch from c3d28d4 to 2bb7958 Compare February 7, 2026 10:16
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.

1 participant