Skip to content

test(statscard): add type compiler validation tests#3552

Merged
JhaSourav07 merged 3 commits into
JhaSourav07:mainfrom
riyakandwal:statscard-type-compiler-tests
Jun 4, 2026
Merged

test(statscard): add type compiler validation tests#3552
JhaSourav07 merged 3 commits into
JhaSourav07:mainfrom
riyakandwal:statscard-type-compiler-tests

Conversation

@riyakandwal
Copy link
Copy Markdown
Contributor

Description

Fixes #2632

Added type compiler validation tests for StatsCardProps.

Changes

  • Exported StatsCardProps interface from StatsCard.tsx
  • Added type-level validation tests for required props:
    • title
    • value
    • description
  • Added type-level validation tests for optional props:
    • showUTCDisclaimer
    • utcDate
  • Verified tests pass successfully

Pillar

  • 🛠 Other (Bug fix, refactoring, docs)

Checklist before requesting a review:

  • I have read the CONTRIBUTING.md file.
  • I have tested these changes locally.
  • I have run npm run lint locally and resolved all errors.
  • My commits follow the Conventional Commits format.
  • I have made sure that I have only one commit to merge in this PR.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Jun 3, 2026

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

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

👋 Hey @riyakandwal, welcome to CommitPulse! 🎉

Thanks for opening your first pull request — this is a big deal and we appreciate the effort!

While you wait for a review, please double-check:

  • ✅ You've read the CONTRIBUTING.md checklist
  • npm run lint, npm run format, and npm run test all pass locally
  • ✅ Your PR has a visual preview if it touches any SVG output
  • 💬 You've joined our Discord for faster PR feedback

A maintainer will review your PR shortly. Hang tight! 🚀

@JhaSourav07 JhaSourav07 added GSSoC 2026 level:beginner Small changes Usually isolated fixes or simple UI/text updates. 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 13308ff into JhaSourav07:main Jun 4, 2026
7 of 8 checks passed
@github-actions github-actions Bot added this to the GSSoC 2026 milestone Jun 4, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

🎉 Congratulations @riyakandwal! Your PR has been successfully merged. 🚀

Thank you for contributing to CommitPulse. Your work helps us build a better tool for the community.

⚠️ Important for GSSoC Contributors:
You are strictly advised to join our Discord Server as it is mandatory for all GSSoC participants. All important announcements, point claims, and community discussions happen there.

Keep building! 💻✨

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:beginner Small changes Usually isolated fixes or simple UI/text updates. 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(StatsCard-type-compiler): verify TypeScript Compiler Validation & Schema Constraints Stability (Variation 10)

2 participants