Skip to content

test(SocialsSection-empty-fallback): verify Edge Cases & Empty/Missing Inputs Verification#5758

Open
Thacker-Meet wants to merge 1 commit into
JhaSourav07:mainfrom
Thacker-Meet:test/socialssection-empty-fallback
Open

test(SocialsSection-empty-fallback): verify Edge Cases & Empty/Missing Inputs Verification#5758
Thacker-Meet wants to merge 1 commit into
JhaSourav07:mainfrom
Thacker-Meet:test/socialssection-empty-fallback

Conversation

@Thacker-Meet

Copy link
Copy Markdown
Contributor

Description

Fixes #4236

Adds dedicated empty-fallback coverage for SocialsSection to verify stability when handling empty arrays, missing inputs, unconfigured selections, and no-result states.

The test suite validates:

  • Safe rendering with empty selected and socialLinks props.
  • Fallback UI when no platforms are selected in the Links tab.
  • Empty search result behavior.
  • Graceful handling of selected IDs that do not exist in the socials dataset.
  • Display of missing-link indicators for selected platforms without URLs.

All tests pass successfully with Vitest and focus on real component behavior without introducing runtime errors.

Pillar

  • 🛠️ Other (Bug fix, refactoring, docs)

Visual Preview

  • N/A (test-only changes)

Checklist before requesting a review:

  • I have read the CONTRIBUTING.md file.
  • I have tested these changes locally (localhost:3000/api/streak?user=YOUR_USERNAME).
  • 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 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 (no raw elements, smooth animations, correct fonts).
  • (Recommended) I joined the CommitPulse Discord community for contributor discussions, mentorship, and faster PR support.

@github-actions

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Size Report (Gzipped Sizes)

✨ No significant bundle size changes detected.

📊 Summary of Totals

Category PR Size Base Size Difference
Total JS 3433.75 KB 3433.75 KB 0 B
Total CSS 258.05 KB 258.05 KB 0 B

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.

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

1 participant