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 #3581

Closed
GauravSaini01 opened this issue Jan 16, 2025 · 4 comments
Closed

Migrate Testing Framework from Jest to Vitest #3581

GauravSaini01 opened this issue Jan 16, 2025 · 4 comments

Comments

@GauravSaini01
Copy link

Description
We propose migrating from Jest to Vitest as our testing framework. Vitest offers faster test execution and enhanced TypeScript support, making it an ideal choice for our project. This migration will involve updating our test files to be compatible with Vitest and replacing Jest-specific methods with Vitest equivalents.

Why This Change is Necessary

  • Improved Speed: Vitest is designed to be faster than Jest, providing quicker test runs.
  • TypeScript Support: Vitest offers native TypeScript support, which can improve our development experience.
Copy link

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@GauravSaini01
Copy link
Author

@derberg
If you approve, I’d be glad to proceed with the migration and implement the changes.

@vishvamsinh28
Copy link
Contributor

Do we really need to migrate the testing framework for Node.js scripts ?

@anshgoyalevil @akshatnema

@anshgoyalevil
Copy link
Member

It doesn't currently feel like a need of the hour to migrate from Jest to vitest. We are currently using Jest for pure Node scripts. No React Testing Library of JSDOM.

@anshgoyalevil anshgoyalevil closed this as not planned Won't fix, can't repro, duplicate, stale Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants