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/screens/BlockUser #2543

Closed
VanshikaSabharwal opened this issue Dec 1, 2024 · 1 comment
Closed

Refactor: src/screens/BlockUser #2543

VanshikaSabharwal opened this issue Dec 1, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation feature request refactor Refactor the code to improve its quality test Testing application unapproved

Comments

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

Acceptance Criteria

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

Refer to the merged PR for the base Vitest configuration:
https://github.com/PalisadoesFoundation/talawa-admin/pull/2457/files#diff-9a5a35cf8d7f02b2bba90905714b762560579c4789e9eb4cebb4607980aa3d93
Vitest documentation:
https://vitest.dev/
Potential internship candidates
Please read this if you are planning to apply for a Palisadoes Foundation internship

PalisadoesFoundation/talawa#359

@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 Dec 1, 2024
Copy link

github-actions bot commented Dec 1, 2024

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.

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 unapproved
Projects
Status: Done
Archived in project
Development

No branches or pull requests

1 participant