---
stable_id: skills/skills-sh-antfu-skills-vue-testing-best-practices
type: skills
title: skills-sh-antfu-skills-vue-testing-best-practices
summary: >-
  ---

  title: Use Vitest for Vue 3 Testing - Recommended by Vue Team

  impact: MEDIUM

  impactDescription: Using Jest or other runners with Vite projects requires
  complex configuration and causes slower test runs

  type: best-practice

  tags: [vue3, testing, vitest, vite, configuration, setup]

  ---

  # Use Vitest for Vue 3 Testing - Recommended by Vue Team

  **Impact: MEDIUM** - Vitest is created and maintained by Vue/Vite team members
  and shares the same configuration and transform pipeline as Vite. Using Jest
  or other test runners with Vite-based projects requires additional
  configuration and can result in slower test execution and compatibility
  issues.

  Use Vitest for new Vue 3 projects. Only consider Jest if migrating an existing
  test suite.
tags:
  - skills-sh
  - skills-sh-all-time
source_url: https://raw.githubusercontent.com/antfu/skills/HEAD/skills/vue-testing-best-practices/reference/testing-vitest-recommended-for-vue.md
license: ""
upstream_ref: https://skills.sh/antfu/skills/vue-testing-best-practices
github_stars: 4218
github_forks: 211
github_is_organization: false
retrieved_at: 2026-06-11T08:33:25.086Z
content_sha256: acfa0b3986e092f43d4cd8090864860cff07ffa3aaa62a10c5a622770ccaeb6b
---
