Skip to content

test(DashboardClient): add empty fallback coverage#3579

Merged
JhaSourav07 merged 1 commit into
JhaSourav07:mainfrom
mayank200529:test-dashboardclient-empty-fallback
Jun 4, 2026
Merged

test(DashboardClient): add empty fallback coverage#3579
JhaSourav07 merged 1 commit into
JhaSourav07:mainfrom
mayank200529:test-dashboardclient-empty-fallback

Conversation

@mayank200529
Copy link
Copy Markdown
Contributor

Description

Fixes #2523

Added a new test file components/dashboard/DashboardClient.empty-fallback.test.tsx to verify empty and missing input fallback behavior for DashboardClient.

The test file includes 5 test cases covering:

  • Empty languages array
  • Empty activity array
  • Empty insights array
  • Empty achievements array
  • Multiple empty dashboard collections together

All tests pass successfully.

Pillar

  • 🎨 Pillar 1 — New Theme Design
  • 📐 Pillar 2 — Geometric SVG Improvement
  • 🕐 Pillar 3 — Timezone Logic Optimization
  • 🛠️ Other (Bug fix, refactoring, docs)

Visual Preview

No visual changes. This PR only adds test coverage.

Test result:

npm run test -- DashboardClient.empty-fallback.test.tsx
Test Files  1 passed (1)
Tests  5 passed (5)

Checklist before requesting a review:

  • I have read the CONTRIBUTING.md file.
  • I have tested these changes locally (npm run test -- DashboardClient.empty-fallback.test.tsx).
  • I have run npm run format and npm run lint locally and resolved all errors (CI will fail otherwise).
  • My commits follow the Conventional Commits format (e.g., feat(themes): ..., fix(calculate): ...).
  • I have updated README.md if I added a new theme or URL parameter.
  • I have started the repo.
  • I have made sure that i have only one commit to merge in this PR.
  • The SVG output matches the CommitPulse "premium quality" aesthetic standard (not applicable, no SVG changes).
  • (Recommended) I joined the CommitPulse Discord community for contributor discussions, mentorship, and faster PR support.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Jun 3, 2026

@mayank200529 is attempting to deploy a commit to the jhasourav07's projects Team on Vercel.

A member of the Team first needs to authorize it.

@JhaSourav07 JhaSourav07 added GSSoC 2026 level:intermediate Moderate complexity tasks quality:exceptional Outstanding contribution with exceptional implementation quality, testing. gssoc:approved PR has been reviewed and accepted for valid contribution points labels Jun 4, 2026
@JhaSourav07 JhaSourav07 merged commit e09b7f9 into JhaSourav07:main Jun 4, 2026
7 of 9 checks passed
@github-actions github-actions Bot added the type:testing Adding, updating, or fixing tests label Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved PR has been reviewed and accepted for valid contribution points GSSoC 2026 level:intermediate Moderate complexity tasks quality:exceptional Outstanding contribution with exceptional implementation quality, testing. type:testing Adding, updating, or fixing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(DashboardClient-empty-fallback): verify Edge Cases & Empty/Missing Inputs Verification (Variation 1)

2 participants