Test/interactive viewer type compiler#7401
Conversation
…nd resolve ts-expect-error
… type constraints
📦 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 compiler tests for the Interactive Viewer. It's awesome to have strict compiler checks for our React props and Zod schemas, ensuring everything matches the expected shapes.
I'm assigning level:beginner, type:testing, and quality:clean.
Looks fantastic, approving!
|
🎉 Congratulations @adityapandey4621! 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 #7014
I've added the new isolated testing file
components/InteractiveViewer.type-compiler.test.tsxto handle the TypeScript Compiler Validation & Schema Constraints Stability scenarios for theInteractiveViewercomponent.Here's exactly what I did:
expectTypeOf) to enforce field property configurations for complex function signatures likeonRotate3DandonReset3D.is3DMode) are definitively blocked during static type checking using@ts-expect-error.Partialsetups) without triggering false compile errors.InteractiveViewerPropsand verified that schema validation constraints return strict validation reports when invalid types are parsed.Pillar
Visual Preview
(N/A — This is a frontend testing infrastructure PR)
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.