# vuejs/test-utils

Vue Test Utils for Vue 3

Repository: https://github.com/vuejs/test-utils
Canonical: https://ross.abutalabs.com/products/test-utils
Homepage: https://test-utils.vuejs.org
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-09-02T05:52:03+00:00

## Health v2 (maintenance only)
Score: 100/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 99, longevity 100
- inputs: {"age_days": 2386, "days_push": 0, "days_rel": 6, "gap_med": 14, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1158, forks 289 (observed 2026-09-03T02:15:20.406698+00:00)

## What it is
The official component testing utility library for Vue 3, providing APIs to mount, interact with, and assert against Vue components in test environments. It is published as the @vue/test-utils npm package.

## Use cases
- unit test vue 3 components
- mount vue components in tests
- test vue component props and events
- write component tests with vitest for vue
- migrate from vue test utils v1 to v2

## When to choose
- you are writing unit or component tests for Vue 3 applications
- you need to mount, query, and interact with Vue components in a test runner like Vitest or Jest

## When to avoid
- you are testing Vue 2 applications (use Vue Test Utils v1 instead)
- you need full end-to-end browser testing rather than component-level tests (consider Cypress or Playwright)

## Facets
- artifact type: library
- maturity: stable
- function: testing, e2e-testing, mocking
- domain: frontend, web-development, testing, developer-tools
- platform: -
- tags: vue, vue3, component-testing, unit-testing, typescript, official, nodejs, javascript, web

## Member repositories
- vuejs/test-utils (main) score 100

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:20.406698+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:32:09.768998+00:00, confidence not recorded.
  - readme: https://github.com/vuejs/test-utils (fetched 2026-09-03T02:15:20.406698+00:00, sha f1b16d76a263)
  - homepage: https://test-utils.vuejs.org (fetched 2026-08-29T12:37:41.553364+00:00, sha ed80c2d6c8fb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
