# testing-library/vue-testing-library

🦎 Simple and complete Vue.js testing utilities that encourage good testing practices.

Repository: https://github.com/testing-library/vue-testing-library
Canonical: https://ross.abutalabs.com/products/vue-testing-library
Homepage: http://testing-library.com/vue
Language: JavaScript
License: MIT
License Family: permissive
Topics: vuejs, testing, vue, test, testing-tools, dom-testing-library, vue-testing-library
Last push: 2024-05-29T12:56:23+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": 3087, "days_push": 826, "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 1124, forks 111 (observed 2026-08-28T04:03:40.896152+00:00)

## What it is
Vue Testing Library is a lightweight adapter on top of DOM Testing Library and @vue/test-utils that provides simple utilities for testing Vue components in a user-centric way. It encourages testing through the DOM the way users interact with apps, rather than testing implementation details.

## Use cases
- test vue components
- write user-centric tests for vue apps
- query dom elements by label text in vue tests
- simulate user interactions like clicks in vue component tests
- test vue components with vuex store and vue router
- avoid brittle tests that depend on component internals

## When to choose
- you write Vue 2 or Vue 3 component tests and want maintainable, implementation-detail-free tests
- you want tests that resemble real user interactions and improve accessibility
- you already use the Testing Library family (React, Angular) and want consistent APIs in Vue

## When to avoid
- you need a test runner or assertion framework - it works with Jest/Vitest but is neither
- you need deep access to component instances, internal state, or lifecycle methods
- you are testing non-DOM targets like Vue Native or server-side rendering output

## Facets
- artifact type: library
- maturity: maintenance
- function: testing, e2e-testing
- domain: testing, frontend, web-development, developer-tools
- platform: browser
- tags: vue, vue3, dom-testing-library, unit-testing, component-testing, user-centric-testing, accessibility-testing, nodejs, javascript

## Member repositories
- testing-library/vue-testing-library (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:40.896152+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:39:51.836840+00:00, confidence not recorded.
  - readme: https://github.com/testing-library/vue-testing-library (fetched 2026-08-28T04:03:40.896152+00:00, sha 184d83d8c4da)
  - homepage: http://testing-library.com/vue (fetched 2026-08-29T12:44:20.543989+00:00, sha ea10ca85b756)
  - site_page: https://testing-library.com/docs (fetched 2026-08-29T12:44:20.546412+00:00, sha 294680c6ca00)
  - site_page: https://testing-library.com/docs/recipes (fetched 2026-08-29T12:44:20.547930+00:00, sha e707259ba080)
  - site_page: https://testing-library.com/docs/queries/about (fetched 2026-08-29T12:44:20.549324+00:00, sha 1bb7d31eef5f)
  - site_page: https://testing-library.com/docs/dom-testing-library/intro (fetched 2026-08-29T12:44:20.551125+00:00, sha 273a42fd0eae)
  - site_page: https://testing-library.com/docs/react-testing-library/intro (fetched 2026-08-29T12:44:20.552653+00:00, sha 6cbad718f3ab)
  - site_page: https://testing-library.com/docs/vue-testing-library/examples (fetched 2026-08-29T12:44:20.554112+00:00, sha 1ac14cdb17c1)
  - site_page: https://testing-library.com/docs/vue-testing-library/setup (fetched 2026-08-29T12:44:20.555531+00:00, sha c33210269986)
  - site_page: https://testing-library.com/docs/vue-testing-library/api (fetched 2026-08-29T12:44:20.556804+00:00, sha c6c56a1c77c3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
