Skip to content

Refactor: src/screens/UserPortal/Volunteer/VolunteerManagement.test.tsx from Jest to Vitest #2581

Closed
@VanshikaSabharwal

Description

@VanshikaSabharwal

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
  2. Ensure all tests in src/screens/UserPortal/Volunteer/VolunteerManagement.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

Metadata

Metadata

Labels

good first issueGood for newcomersrefactorRefactor the code to improve its qualitytestTesting application

Type

No type

Projects

Status

Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions