Skip to content

vuejs/test-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6b3295b Â· Mar 26, 2025
Feb 7, 2025
Jul 4, 2022
Mar 22, 2025
Aug 2, 2024
Mar 10, 2025
Jan 15, 2025
Mar 25, 2025
Aug 2, 2024
Feb 15, 2021
Aug 28, 2023
Mar 26, 2020
Mar 6, 2021
Nov 19, 2024
Aug 2, 2024
Feb 7, 2025
Mar 26, 2025
Mar 25, 2025
Feb 19, 2023
Aug 2, 2024
Dec 25, 2023
Dec 24, 2021
Mar 25, 2025

Repository files navigation

Vue Test Utils

Component testing utils for Vue 3.

Languages

🇫🇷 French version of this README.md

Installation and Usage

  • yarn: yarn add @vue/test-utils --dev
  • npm: npm install @vue/test-utils --save-dev

Get started with the documentation.

Coming from Vue 2 + Test Utils v1?

Check the migration guide. It's still a work in progress. If you find a problem or something that doesn't work that previously did in Vue Test Utils v1, please open an issue.

Documentation

See the docs.

Development

Get started by running pnpm install. You can run the tests with pnpm test. That's it!

Contributing Docs

All the documentation files can be found in docs. It contains the English markdown files while translation(s) are stored in their corresponding <lang> sub-folder(s):

  • fr: French translation.

Besides that, the .vitepress sub-folder contains the config and theme, including the i18n information.

  • pnpm docs:dev: Start the docs dev server.
  • pnpm docs:build: Build the docs.

To add or maintain the translations, we follow the Vue Ecosystem Translation Guidelines.

  • pnpm docs:translation:status [<lang>]: Show the translation status for your language. If you don't specify a language, it will show the status for all languages.
  • pnpm docs:translation:compare <lang>: Compare the docs with the latest checkpoint for your language.
  • pnpm docs:translation:update <lang> [<commit>]: Update the checkpoint for your language. The checkpoint will be set by the latest commit hash. However, you can also specify a commit hash manually.