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/LeftDrawer/LeftDrawer.test.tsx from Jest to Vitest #3119

Closed
aryanrule opened this issue Jan 2, 2025 · 2 comments
Closed
Assignees
Labels
documentation Improvements or additions to documentation feature request refactor Refactor the code to improve its quality test Testing application

Comments

@aryanrule
Copy link

Is your feature request related to a problem? Please describe

The 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

  • Replace Jest-specific functions and mocks with Vitest equivalents.
  • Rename the test file from having a .test.* suffix to a .spec.* suffix.
  • Ensure all tests in the file pass after migration using npm run test:vitest.
  • Maintain the test coverage for the file as 100% after migration.
  • Upload a video or photo showing that this specific file's 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:
Student Internship Programs

@github-actions github-actions bot added documentation Improvements or additions to documentation feature request refactor Refactor the code to improve its quality test Testing application unapproved labels Jan 2, 2025
Copy link

github-actions bot commented Jan 2, 2025

Congratulations on making your first Issue! 🎊 If you haven't already, check out our Contributing Guidelines and Issue Reporting Guidelines to ensure that you are following our guidelines for contributing and making issues.

@aryanrule
Copy link
Author

hi sir @palisadoes can i work on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation feature request refactor Refactor the code to improve its quality test Testing application
Projects
Status: Done
Archived in project
Development

No branches or pull requests

3 participants