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

Consider migration from Jest to Vitest #1591

Closed
exoego opened this issue Mar 16, 2024 · 2 comments · Fixed by #1590
Closed

Consider migration from Jest to Vitest #1591

exoego opened this issue Mar 16, 2024 · 2 comments · Fixed by #1590

Comments

@exoego
Copy link
Contributor

exoego commented Mar 16, 2024

As a contributor, it would be nice if tests run fast.

Vitest is a very fast test framework becoming popular in JS world in the recent years.
I've recently migrated my work projects from Jest to Vitest and the team are quite happy with the results.

  • Fast. In my work projects, migrating to Vitest halves test time (40 seconds -> 20 seconds)
  • Jest compatible. Even many Jest plugins run with Vitest.
  • Compact. Its bundle size is 51 KB compared to Jest's 582 KB.
  • Out-of-box TypeScript support

You can see the visualized comparison in https://moiva.io/?npm=jest+vitest

@suzuki-shunsuke suzuki-shunsuke moved this to In Progress in main Mar 16, 2024
@suzuki-shunsuke
Copy link
Owner

Thank you for your proposal.
I'm not familiar with Vitest, but it looks nice!

@suzuki-shunsuke
Copy link
Owner

@github-project-automation github-project-automation bot moved this from In Progress to Done in main Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants