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

Switch from Jest to Vitest #56

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Switch from Jest to Vitest #56

wants to merge 1 commit into from

Conversation

jsynowiec
Copy link
Owner

I now recommend using Vitest over Jest for unit and integration testing of TypeScript code. This PR has breaking changes and replaces Jest with Vitest.

Throughout 2023, my team and I gradually switched from Jest to Vitest in all the projects. We've found out that generally, Vitest is faster than Jest, especially for large test suits. Furthermore, Vitest has native support for ES modules, is easier to configure, and has a much nicer developer experience when used with TypeScript. For example, when working with mocks, spies and types.

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

Successfully merging this pull request may close these issues.

None yet

1 participant