Skip to content

test(template): add type compiler validation tests#3311

Merged
JhaSourav07 merged 2 commits into
JhaSourav07:mainfrom
pari7maheshwari:test/template-type-compiler
Jun 3, 2026
Merged

test(template): add type compiler validation tests#3311
JhaSourav07 merged 2 commits into
JhaSourav07:mainfrom
pari7maheshwari:test/template-type-compiler

Conversation

@pari7maheshwari
Copy link
Copy Markdown
Contributor

Description

Fixes #2872

Added app/template.type-compiler.test.tsx to provide isolated type compiler validation and schema constraint stability coverage for app/template.tsx.

Implemented 5 tests covering:

  • Type enforcement for the children prop using expectTypeOf
  • Validation that invalid prop parameters are blocked during static type checking
  • Optional/valid ReactNode compatibility checks
  • Runtime rendering validation for valid children
  • Stability verification for null children without runtime crashes

Verified the new test file passes with:
npx vitest run app/template.type-compiler.test.tsx

Pillar

  • 🎨 Pillar 1 — New Theme Design
  • 📐 Pillar 2 — Geometric SVG Improvement
  • 🕐 Pillar 3 — Timezone Logic Optimization
  • 🛠️ Other (Bug fix, refactoring, docs)

Visual Preview

N/A (test-only change)

Checklist before requesting a review:

  • I have read the CONTRIBUTING.md file.
  • I have tested these changes locally (localhost:3000/api/streak?user=YOUR_USERNAME).
  • I have run npm run format and npm run lint locally and resolved all errors (CI will fail otherwise).
  • My commits follow the Conventional Commits format (e.g., feat(themes): ..., fix(calculate): ...).
  • I have updated README.md if I added a new theme or URL parameter.
  • I have started the repo.
  • I have made sure that i have only one commit to merge in this PR.
  • The SVG output matches the CommitPulse "premium quality" aesthetic standard (no raw elements, smooth animations, correct fonts).
  • (Recommended) I joined the CommitPulse Discord community for contributor discussions, mentorship, and faster PR support.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Jun 2, 2026

@pari7maheshwari is attempting to deploy a commit to the jhasourav07's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the type:testing Adding, updating, or fixing tests label Jun 3, 2026
@Aamod007 Aamod007 added GSSoC 2026 mentor:Aamod007 level:advanced Complex contributions involving architecture, optimization, or significant feature work quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. labels Jun 3, 2026
@JhaSourav07 JhaSourav07 added quality:exceptional Outstanding contribution with exceptional implementation quality, testing. gssoc:approved PR has been reviewed and accepted for valid contribution points and removed level:advanced Complex contributions involving architecture, optimization, or significant feature work quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. labels Jun 3, 2026
@JhaSourav07 JhaSourav07 merged commit 12136fb into JhaSourav07:main Jun 3, 2026
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved PR has been reviewed and accepted for valid contribution points GSSoC 2026 mentor:Aamod007 quality:exceptional Outstanding contribution with exceptional implementation quality, testing. type:testing Adding, updating, or fixing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(AppTemplate-type-compiler): verify TypeScript Compiler Validation & Schema Constraints Stability (Variation 10)

3 participants