https://github.com/vuejs/vue-test-utils
Component Test Utils for Vue 2
https://github.com/vuejs/vue-test-utils
Last synced: 7 months ago
JSON representation
Component Test Utils for Vue 2
- Host: GitHub
- URL: https://github.com/vuejs/vue-test-utils
- Owner: vuejs
- License: mit
- Created: 2017-05-28T11:38:09.000Z (over 8 years ago)
- Default Branch: dev
- Last Pushed: 2024-01-26T17:50:21.000Z (almost 2 years ago)
- Last Synced: 2025-05-08T04:32:42.395Z (7 months ago)
- Language: JavaScript
- Homepage: https://vue-test-utils.vuejs.org
- Size: 7.68 MB
- Stars: 3,570
- Watchers: 54
- Forks: 668
- Open Issues: 129
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-vue - vue-test-utils - Utilities for testing Vue components ` 📝 13 days ago` (Dev Tools [🔝](#readme))
- awesome-vue-zh - Vue测试用例 - 用于测试Vue组件的官方工具. (叫研发工具组 / 试验)
- awesome-vue - vue-test-utils ★2186 - Official utilities for testing Vue components. (Dev Tools / Test)
- awesome-vue - vue-test-utils - Official utilities for testing Vue components. (Components & Libraries / Dev Tools)
- awesome-vue - vue-test-utils - Official utilities for testing Vue components. (Dev Tools / Test)
README
# Vue Test Utils [](https://circleci.com/gh/vuejs/vue-test-utils)
Component testing utils for Vue 2.
## Packages
This repository provides the following two packages:
- [Vue Test Utils](./packages/test-utils)
- [Vue Server Test Utils](./packages/server-test-utils)
You can install these packages by the following command.
```
npm install --save-dev @vue/test-utils@1
npm install --save-dev @vue/server-test-utils@1
```
## Peer Dependencies
You need to install `vue-template-compiler` which is used to compile components. It should be the same version as the version of Vue you are using.
```
npm install --save-dev vue-template-compiler
```
## Documentation
Refer to the [documentation](https://v1.test-utils.vuejs.org/)
## Questions
For questions and support please use the [Discord chat room](https://vue-land.js.org/) or [the official forum](http://forum.vuejs.org). The issue list of this repo is **exclusively** for bug reports and feature requests.
## Issues
Please make sure to read the issue reporting requirements before opening an issue. Issues not conforming to the guidelines may be closed immediately.
## Contribution
Please make sure to read the [Contributing Guide](https://github.com/vuejs/vue-test-utils/blob/dev/.github/CONTRIBUTING.md) before making a pull request.
## Changelog
Changes for each release are documented in the [release notes](https://github.com/vuejs/vue-test-utils/releases).
## Stay In Touch
For the latest releases and announcements, follow on Twitter: [@vuejs](https://twitter.com/vuejs)
## License
[MIT](http://opensource.org/licenses/MIT)