Closed
Description
Is your feature request related to a problem? Please describe.
This files in this directory and all its subdirectories are currently tested using Jest. As part of our migration to Vitest, we need to refactor all these files' test cases to align with Vitest's syntax and features.
Files:
- Refactor
src/components/EventStats/EventStats.test.tsx
from Jest to Vitest - Refactor
src/components/EventStats/EventStatsWrapper.test.tsx
from Jest to Vitest - Refactor
src/components/EventStats/Statistics/AverageRating.test.tsx
from Jest to Vitest - Refactor
src/components/EventStats/Statistics/Feedback.test.tsx
from Jest to Vitest - Refactor
src/components/EventStats/Statistics/Review.test.tsx
from Jest to Vitest
Acceptance Criteria
For each *.test.ts
and *.test.tsx
file found under the parent:
- 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 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
Metadata
Metadata
Assignees
Type
Projects
Status
Done
Status
Done