-
-
Notifications
You must be signed in to change notification settings - Fork 444
test: add unit tests for DashboardHeader component #1042
Copy link
Copy link
Closed
Labels
good first issueGood for newcomersGood for newcomersgssoc26GSSoC 2026 contributionGSSoC 2026 contributionlevel:beginnerGSSoC: Beginner difficulty (20 pts)GSSoC: Beginner difficulty (20 pts)type:testingGSSoC type bonus: tests (+10 pts)GSSoC type bonus: tests (+10 pts)
Description
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomersgssoc26GSSoC 2026 contributionGSSoC 2026 contributionlevel:beginnerGSSoC: Beginner difficulty (20 pts)GSSoC: Beginner difficulty (20 pts)type:testingGSSoC type bonus: tests (+10 pts)GSSoC type bonus: tests (+10 pts)
Testing Request
What tests are missing?
src/components/DashboardHeader.tsxhas no unit tests. This component handles session-dependent rendering (Share Profile button visibility, public profile URL) and settings fetching.Proposed Tests
Implementation Details
next-auth/reactuseSessionhookfetchfor/api/user/settingssrc/components/__tests__/DashboardHeader.test.tsxAcceptance Criteria
npm test