docs: promote Vitest as recommended test runner#2805
Merged
cexbrayat merged 2 commits intovuejs:mainfrom Apr 7, 2026
Merged
Conversation
Update the installation docs to recommend Vitest over Jest for Vue projects. Vitest is built on Vite, supports .vue files without additional transform configuration, and provides a faster testing experience with native ESM support. Jest instructions are kept as an alternative for webpack-based projects. Closes vuejs#2531
✅ Deploy Preview for vue-test-utils-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
cexbrayat
reviewed
Apr 3, 2026
Member
cexbrayat
left a comment
There was a problem hiding this comment.
Good idea! 👍
Would you mind updating the docs in other languages as well (your favorite LLM should be able to do the job, and we'll review)?
Apply the same Vitest promotion changes to the fr and zh translations, matching the structure of the English installation page. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Done - updated both the French and Chinese installation pages to match the English version (Vitest recommended section + Jest as alternative). |
cexbrayat
approved these changes
Apr 7, 2026
Ari4ka
approved these changes
Apr 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates the installation docs to recommend Vitest over Jest for Vue projects.
Changes
docs/installation/index.md:Why Vitest
Vue CLI and create-vue both use Vite. Vitest works with Vite out of the box with no transform configuration needed for
.vuefiles. The current docs recommend Jest as "the easiest way" which hasn't been accurate since the Vue ecosystem moved to Vite.Closes #2531
This contribution was developed with AI assistance (Claude Code).