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

Migrate Testing Framework from Jest to Vitest #2456

Closed
prayanshchh opened this issue Nov 20, 2024 · 4 comments
Closed

Migrate Testing Framework from Jest to Vitest #2456

prayanshchh opened this issue Nov 20, 2024 · 4 comments
Assignees
Labels
good first issue Good for newcomers no-issue-activity No issue activity parent Parent issue test Testing application

Comments

@prayanshchh
Copy link
Contributor

Is your feature request related to a problem? Please describe.
We are planning to migrate the testing framework in the admin repository from Jest to Vitest to leverage Vitest's compatibility with Vite and improved performance. The initial step involves setting up Vitest alongside Jest and testing with one file. If successful, further issues will be created to migrate tests incrementally.

Describe the solution you'd like
Set Up Vitest Configuration
Add an initial configuration for Vitest.
Ensure compatibility with the existing Vite setup in the admin repo.
Keep Jest configuration intact for now.
Write a test for a single file using Vitest to verify the setup.
Ensure the test passes without any issues.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Approach to be followed (optional)
A clear and concise description of approach to be followed.

Additional context
Here the docs for reference
https://vitest.dev/guide/

Potential internship candidates

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

@dhirajudhani
Copy link
Contributor

@prayanshchh can you assign this to me as i have previously worked with jest

@prayanshchh
Copy link
Contributor Author

I will setup the initial configuration, there will be issues following this to migrate to vitest

@palisadoes
Copy link
Contributor

@prayanshchh There are multiple issues with the PR related to this issue. Large portions of GitHub Actions were overwritten. The quality of our PR process has been very negatively affected. Please work on getting this resolved.

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 26, 2024
@github-project-automation github-project-automation bot moved this from In progress to Done in Talawa-Admin (Tests) Dec 26, 2024
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 no-issue-activity No issue activity parent Parent issue test Testing application
Projects
Status: Done
Archived in project
Development

No branches or pull requests

4 participants