test: add unit tests for DashboardHeader component#1333
test: add unit tests for DashboardHeader component#1333srinidhi-2006-bit wants to merge 1 commit into
Conversation
|
@srinidhi-2006-bit is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel. A member of the Team first needs to authorize it. |
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
|
Implemented the requested unit tests for
The PR includes mocked session handling, fetch behavior tests, and conditional rendering coverage for the Share Profile functionality. Could you please review the PR and add the Thank you! |
Summary
Added unit tests for the
DashboardHeadercomponent using Jest and React Testing Library.Closes #1042
Type of Change
Changes Made
DashboardHeader.test.tsxnext-auth/reactsession handlingHow to Test
Steps for the reviewer to verify this works:
Run:
Verify all tests pass successfully
Run:
Verify there are no lint or TypeScript errors
Screenshots (if UI change)
N/A
Checklist
npm run lintpasses locallynpm run type-check)