test(PRStatusDistribution-type-compiler): implement static typescript validation and schema constraints #7068#7377
Conversation
… validation and schema constraints JhaSourav07#7068
📦 Next.js Bundle Size Report (Gzipped Sizes)✨ No significant bundle size changes detected. 📊 Summary of Totals
|
|
@JhaSourav07 please review and merge it! |
|
@Aamod007 hey , please approve the PR! |
Aamod007
left a comment
There was a problem hiding this comment.
Hey! Thanks for writing the type compiler validation tests for PRStatusDistribution. Enforcing expected structural contracts explicitly via expectTypeOf is the best way to prevent schema drift.
I'm assigning level:beginner, type:testing, and quality:clean.
Nice work, approving!
|
🎉 Congratulations @swarupio! Your PR has been successfully merged. 🚀 Thank you for contributing to CommitPulse. Your work helps us build a better tool for the community.
Keep building! 💻✨ |
Description
This PR introduces a new test suite (
PRStatusDistribution.type-compiler.test.tsx) to verify TypeScript compiler validation and schema constraints for the PRStatusDistribution component.Key implementations include:
expectTypeOfto strictly enforce field property configurations for the expected PR status schema.@ts-expect-error.color,isLoading) without compilation errors.unknowntoExpectedPRStatusDistributionProps) and return accurate validation reports.Fixes #7068
Pillar
Test Cases
Checklist before requesting a review:
CONTRIBUTING.mdfile.localhost:3000/api/streak?user=YOUR_USERNAME).npm run formatandnpm run lintlocally and resolved all errors (CI will fail otherwise).feat(themes): ...,fix(calculate): ...).README.mdif I added a new theme or URL parameter.