Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: src/components/AddOn/support/components/MainContent/MainContent.test.tsx from Jest to Vitest #2475

Open
varshith257 opened this issue Nov 26, 2024 · 1 comment
Assignees
Labels
feature request good first issue Good for newcomers refactor Refactor the code to improve its quality test Testing application

Comments

@varshith257
Copy link
Member

varshith257 commented Nov 26, 2024

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/support/components/MainContent/MainContent.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

@github-actions github-actions bot added documentation Improvements or additions to documentation refactor Refactor the code to improve its quality test Testing application unapproved labels Nov 26, 2024
@varshith257 varshith257 changed the title Refactor: src/components/AddOn/support/components/MainContent from Jest to Vitest Refactor: src/components/AddOn/support/components/MainContent/MainContent.test.tsx from Jest to Vitest Nov 26, 2024
@varshith257 varshith257 added the good first issue Good for newcomers label Nov 26, 2024
@yashpandey06
Copy link

yashpandey06 commented Nov 27, 2024

@varshith257 let me know if any one is not working on this , i would like take up this issue .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request good first issue Good for newcomers refactor Refactor the code to improve its quality test Testing application
Projects
Status: No status
Status: In progress
Status: In progress
Development

No branches or pull requests

3 participants