test(dashboard): add responsive ComparisonStatsCard coverag#1750
Conversation
|
@vaibhav051422-collab is attempting to deploy a commit to the jhasourav07's projects Team on Vercel. A member of the Team first needs to authorize it. |
Aamod007
left a comment
There was a problem hiding this comment.
This PR replaces 10 detailed tests with 3 DOM-structure-only tests. The removed tests covered Winner badge logic, progress bar segments, and equal-value edge cases. Please restore the detailed assertions rather than replacing them with shallow structure checks.
|
i have restored the previous tests..please review this @JhaSourav07 @Aamod007 |
|
🎉 Congratulations @vaibhav051422-collab! 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
Added a focused test suite for ComparisonStatsCard that checks responsive layout structure, positive/negative growth indicators, winner badges, and the zero-value fallback, then verified it passes with Vitest.
Fixes #1540
Pillar
Visual Preview
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.