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/plugins/DummyPlugin/DummyPlugin.test.jsx from jest to vitest #3443

Closed
syedali237 opened this issue Jan 26, 2025 · 4 comments
Assignees
Labels
feature request refactor Refactor the code to improve its quality test Testing application

Comments

@syedali237
Copy link
Contributor

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 the file's test cases to align with Vitest's syntax and features.

Acceptance Criteria

  1. Replace Jest-specific functions and mocks with Vitest equivalents
  2. Rename the test file from having a .test.* suffix to a .spec.* suffix
  3. Ensure all tests in the file pass after migration using npm run test:vitest
  4. Maintain the test coverage for the file as 100% after migration
  5. Upload a video or photo for this specific file coverage is 100% in the PR description

Additional context

  1. Refer to the merged PR for the base Vitest configuration:
    https://github.com/PalisadoesFoundation/talawa-admin/pull/2457/files#diff-9a5a35cf8d7f02b2bba90905714b762560579c4789e9eb4cebb4607980aa3d93
  2. Vitest reference site:
    https://vitest.dev/

Potential internship candidates

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

@Bittukr7479
Copy link

Hii @palisadoes, I want to work on this issue, please assign me.

@varshith257
Copy link
Member

Reassigning. As it's prioritised issues of vitest refactoring i am assigning all issues to @syedali237

@varshith257
Copy link
Member

@Bittukr7479 There are many good first issue opened in Talawa API please check it out

@syedali237
Copy link
Contributor Author

Reassigning. As it's prioritised issues of vitest refactoring i am assigning all issues to @syedali237

@varshith257 i'll raise all the PRs by EOD

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

No branches or pull requests

3 participants