test(dashboard): verify empty inputs fallback states for profile optimizer #3551
Conversation
|
@Mohammedsami001 is attempting to deploy a commit to the jhasourav07's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
I have successfully resolved this issue by adding the 5 required integration test cases for Could you please review and authorize this PR when you have a moment? Also, could you please add the necessary labels to this PR for GSSoC 2026? Thank you! |
|
🎉 Congratulations @Mohammedsami001! 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
Fixes #2683
Added fallback verification testing to
ProfileOptimizerModal. Tested the UI's resilience when missing parameters (userData = null) and empty inputs (userData = {}) are provided. During this, a runtime exception was identified on empty object inputs and fixed using optional chaining (userData.profile?.developerScore).Pillar
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).npm run testand all tests pass locally.npm run test:coverageand branch coverage is at or above 70%.feat(themes): ...,fix(calculate): ...).README.mdif I added a new theme or URL parameter.