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/OrganizationEvents.tsx from Jest to Vitest #2559

Closed
VanshikaSabharwal opened this issue Dec 1, 2024 · 6 comments
Closed
Assignees
Labels
good first issue Good for newcomers refactor Refactor the code to improve its quality test Testing application

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

  1. Replace Jest-specific functions and mocks with Vitest equivalents
  2. Ensure all tests in src/screens/OrganizationEvents.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

Copy link

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

@github-actions github-actions bot added the no-issue-activity No issue activity label Dec 14, 2024
@it1b2313201
Copy link

I want to get the code

@it1b2313201
Copy link

I want to work with you.

@Ramneet04
Copy link
Contributor

Is this issue resolved, if not so can I work on this, assign it to me.

@palisadoes
Copy link
Contributor

@it1b2313201

Unassigning due to inactivity and/or no submitted PR. Others need to get a chance. Please let us know whether you want to be reassigned before someone else requests assignment or select another issue.

@palisadoes palisadoes assigned Ramneet04 and unassigned it1b2313201 Dec 26, 2024
@Ramneet04
Copy link
Contributor

hi! Just a quick update, getting some test fail trying to figure out just need time, will raise pr soon

palisadoes pushed a commit that referenced this issue Dec 29, 2024
… (#3013)

* file name changed

* mocking window object

* migration success

* fixing datetimepicker error

* datepicker error fixed

* fixed the datepickerError
@github-project-automation github-project-automation bot moved this from Backlog to Done in Talawa Admin - Refactoring Dec 29, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in Talawa-Admin (Tests) Dec 29, 2024
Dhiren-Mhatre pushed a commit to Dhiren-Mhatre/talawa-admin that referenced this issue Dec 30, 2024
…isadoesFoundation#2559 (PalisadoesFoundation#3013)

* file name changed

* mocking window object

* migration success

* fixing datetimepicker error

* datepicker error fixed

* fixed the datepickerError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers refactor Refactor the code to improve its quality test Testing application
Projects
Status: Done
Archived in project
Development

No branches or pull requests

4 participants