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

Open
prayanshchh opened this issue Nov 20, 2024 · 3 comments
Open

Migrate Testing Framework from Jest to Vitest #2456

prayanshchh opened this issue Nov 20, 2024 · 3 comments
Assignees
Labels
good first issue Good for newcomers parent Parent issue test Testing application

Comments

@prayanshchh
Copy link

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

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

@prayanshchh
Copy link
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.

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 parent Parent issue test Testing application
Projects
Status: No status
Status: In progress
Development

No branches or pull requests

4 participants