testing-library/vue-testing-library
🦎 Simple and complete Vue.js testing utilities that encourage good testing practices. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3087
- days_rel: n/a
- days_push: 826
- n_releases_24m: 0
Adoption not part of the score
1124 stars · 111 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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
library · maturity maintenance
testing e2e-testing testing frontend web-development developer-tools browser vue vue3 dom-testing-library unit-testing component-testing user-centric-testing accessibility-testing nodejs javascript
10 sources
- readme: https://github.com/testing-library/vue-testing-library · fetched 2026-08-28 · 184d83d8c4da
- homepage: http://testing-library.com/vue · fetched 2026-08-29 · ea10ca85b756
- site_page: https://testing-library.com/docs · fetched 2026-08-29 · 294680c6ca00
- site_page: https://testing-library.com/docs/recipes · fetched 2026-08-29 · e707259ba080
- site_page: https://testing-library.com/docs/queries/about · fetched 2026-08-29 · 1bb7d31eef5f
- site_page: https://testing-library.com/docs/dom-testing-library/intro · fetched 2026-08-29 · 273a42fd0eae
- site_page: https://testing-library.com/docs/react-testing-library/intro · fetched 2026-08-29 · 6cbad718f3ab
- site_page: https://testing-library.com/docs/vue-testing-library/examples · fetched 2026-08-29 · 1ac14cdb17c1
- site_page: https://testing-library.com/docs/vue-testing-library/setup · fetched 2026-08-29 · c33210269986
- site_page: https://testing-library.com/docs/vue-testing-library/api · fetched 2026-08-29 · c6c56a1c77c3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| testing-library/vue-testing-library | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="testing-library/vue-testing-library")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem