test: add TypeScript compiler validation tests for useRecentSearches - #7312
Conversation
📦 Next.js Bundle Size Report (Gzipped Sizes)✨ No significant bundle size changes detected. 📊 Summary of Totals
|
Aamod007
left a comment
There was a problem hiding this comment.
Hey! Thanks for adding the type validation tests for useRecentSearches. Verifying exactly what gets exported from custom hooks protects our client components from unhandled any types.
I'm assigning level:beginner, type:testing, and quality:clean.
Looks excellent, approving!
|
🎉 Congratulations @pari7maheshwari! 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
Adds a dedicated TypeScript compiler validation test suite for
hooks/useRecentSearches.This PR verifies the hook's public API contract using
expectTypeOf, ensuring:useRecentSearchesaccepts no parameters.Fixes #7139
Pillar
Visual Preview
N/A (TypeScript compiler test only)
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.