Skip to content

test(theme-switch): add component animation tests#3352

Merged
JhaSourav07 merged 1 commit into
JhaSourav07:mainfrom
gamana618:test-theme-switch-component
Jun 3, 2026
Merged

test(theme-switch): add component animation tests#3352
JhaSourav07 merged 1 commit into
JhaSourav07:mainfrom
gamana618:test-theme-switch-component

Conversation

@gamana618
Copy link
Copy Markdown
Contributor

@gamana618 gamana618 commented Jun 3, 2026

Description

Fixes #2287

Pillar

  • Pillar 1 — New Theme Design
  • Pillar 2 — Geometric SVG Improvement
  • Pillar 3 — Timezone Logic Optimization
  • Other (tests)

What I solved

Added a dedicated test file for the Theme Switch component to validate animation generation behavior.

Changes made

  • Created app/components/theme-switch.test.tsx
  • Added test for circle animation creation
  • Added test for rectangle animation creation
  • Added test for polygon animation creation
  • Added test for gif animation creation
  • Verified returned animation objects contain name and css properties

Testing

npx vitest run app/components/theme-switch.test.tsx

## Checklist
- [x] Added tests
- [x] Followed project conventions
- [x] Verified tests pass locally

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Jun 3, 2026

@gamana618 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 needs-details This PR is missing required description details. label Jun 3, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

👋 Hey @gamana618, it looks like you didn't use our PR template!

The section ## Checklist is missing from your PR description.

Please update your PR description to include all required sections so we can review this properly:

  • ## Description — What does this PR do? Which issue does it fix?
  • ## Pillar — Which contribution pillar does this fall under?
  • ## Checklist — Have you ticked off the quality checklist?

You can find the full template in CONTRIBUTING.md. Just edit your PR description and the needs-details label will be removed automatically. 🙌

@github-actions github-actions Bot removed the needs-details This PR is missing required description details. label Jun 3, 2026
@Aamod007 Aamod007 added GSSoC 2026 mentor:Aamod007 type:testing Adding, updating, or fixing tests 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
@gamana618
Copy link
Copy Markdown
Contributor Author

gamana618 commented Jun 3, 2026 via email

@JhaSourav07 JhaSourav07 added level:beginner Small changes Usually isolated fixes or simple UI/text updates. 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 9a7f534 into JhaSourav07:main Jun 3, 2026
14 of 16 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 level:beginner Small changes Usually isolated fixes or simple UI/text updates. 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(theme-switch): create app/components/theme-switch.test.tsx

3 participants