PalisadoesFoundation / talawa-admin

Admin portal for the Talawa Mobile App. Click on the link below to see our documentation
https://docs.talawa.io/
GNU General Public License v3.0
154 stars 630 forks source link

Refactor: `src/components/AddOn/core/AddOnRegister/AddOnRegister.test.tsx`from Jest to Vitest #2479

Open varshith257 opened 3 days ago

varshith257 commented 3 days ago

Is your feature request related to a problem? Please describe.

This file is currently tested using Jest. As part of our migration to Vitest, we need to refactor this file's test cases to align with Vitest's syntax and features.

Acceptance Criteria

  1. Replace Jest-specific functions and mocks with Vitest equivalents and rename from test.tsx to spec.tsx
  2. Ensure all tests in src/components/AddOn/core/AddOnRegister/AddOnRegister.test.tsx pass after migration using npm run test:vitest
  3. Maintain the test coverage for the file as 100% after migration
  4. Upload a video or photo for this specific file coverage is 100% in the PR description

Additional Context

Potential internship candidates Please read this if you are planning to apply for a Palisadoes Foundation internship

VishnuGurrapu commented 3 days ago

@varshith257 Could you please assign this issue to me? It was my first contribution, and I would like to continue contributing to this organization.

varshith257 commented 3 days ago

Welcome @VishnuGurrapu