test(heatmapUtils-type-compiler): implement static typescript validation and schema constraints #7109#7376
Conversation
…ion and schema constraints JhaSourav07#7109
📦 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 adding the TypeScript compiler validation tests for the heatmap utilities. Validating the return structures explicitly prevents downstream components from breaking if internal util signatures change.
I'm assigning level:beginner, type:testing, and quality:clean.
Solid, 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 (
heatmapUtils.type-compiler.test.ts) to verify TypeScript compiler validation and schema constraints for the heatmap utilities.Key implementations include:
expectTypeOfto strictly enforce field property configurations for the heatmap schema.@ts-expect-error.level) without compilation errors.unknowntoExpectedHeatmapSchema) and return accurate validation reports without triggering TypeScript inference issues.Fixes #7109
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.