Vue Test Utils
Official testing utility library for Vue.js components, for mounting components in tests and interacting with them.
test-utils.vuejs.orgrepositorydocs
Vue Test Utils is the testing utility library for Vue.js components. It provides methods that mount a component on its own and interact with it from a test, and it works with any test runner. The guide names Vitest as the recommended runner, shows Jest as an option through vue-jest, and lists Cypress, Playwright and WebdriverIO as browser-based runners. Cypress Component Testing and Testing Library both use Vue Test Utils under the hood and expose the same API.
Worth knowing
The library’s current line targets Vue 3. The first line targets Vue 2, and the migration guide covers the change between them.
Sources
- 2026-11-17: links
test-utils.vuejs.org/ - 2026-11-17: links, Written in, License, GitHub stars
api.github.com/repos/vuejs/test-utils - 2026-11-17: links, Built on
test-utils.vuejs.org/guide/ - 2026-11-17: First release
registry.npmjs.org/@vue/test-utils - 2026-11-17: Maintainer, License model
github.com/vuejs/test-utils/blob/main/LICENSE - 2026-11-17: Categories
github.com/vuejs/test-utils/blob/main/README.md - 2026-11-17: Install with
test-utils.vuejs.org/installation/ - 2026-11-17: Current major version, Last release
api.github.com/repos/vuejs/test-utils/releases/tags/v2.6.0 - 2026-11-17: Contributors
api.github.com/repos/vuejs/test-utils/contributors?per_page=1 - 2026-11-17: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/@vue/test-utils