# vuejs/vue-test-utils

Component Test Utils for Vue 2

Repository: https://github.com/vuejs/vue-test-utils
Canonical: https://ross.abutalabs.com/products/vue-test-utils
Homepage: https://vue-test-utils.vuejs.org
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2024-01-26T17:50:21+00:00

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

## Adoption (not part of the score)
Stars 3545, forks 654 (observed 2026-08-28T04:08:09.385829+00:00)

## What it is
Official unit testing utility library for Vue.js 2 components, providing mount/shallowMount wrappers and DOM interaction helpers. It is the Vue 2-targeting v1 line, with Vue 3 served by Vue Test Utils v2.

## Use cases
- test vue 2 components with jest
- mount vue components in unit tests
- simulate clicks and dom events in vue tests
- test vuex and vue router integration
- server-side render vue components for testing

## When to choose
- you are writing unit tests for Vue 2 components
- you want official, well-documented component testing utilities

## When to avoid
- you are on Vue 3 (use @vue/test-utils v2)
- you need end-to-end browser testing rather than component unit tests

## Facets
- artifact type: library
- maturity: maintenance
- function: testing, e2e-testing
- domain: frontend, web-development, testing
- platform: -
- tags: vue, vue2, unit-testing, jest, component-testing, nodejs, javascript

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

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:09.385829+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-29T18:34:25.578973+00:00, confidence not recorded.
  - readme: https://github.com/vuejs/vue-test-utils (fetched 2026-08-28T04:08:09.385829+00:00, sha dcf2a37720c1)
  - homepage: https://vue-test-utils.vuejs.org (fetched 2026-08-29T09:28:54.399844+00:00, sha d224059c75fb)
  - site_page: https://v1.test-utils.vuejs.org/installation (fetched 2026-08-29T09:28:54.408719+00:00, sha 46966183c67c)
  - site_page: https://v1.test-utils.vuejs.org/guides/getting-started (fetched 2026-08-29T09:28:54.410751+00:00, sha 1b6b8a0f8610)
  - registry_npm: https://registry.npmjs.org/vue-test-utils (fetched 2026-08-29T09:28:54.412383+00:00, sha 8be04ff3cf55)
- Data as of 2026-08-30T08:39:29.467469+00:00.
