|
1 | 1 | <div align="center">
|
2 | | -<h1>Vue Testing Library</h1> |
| 2 | +<h1>Vue Testing Library for Vue 2</h1> |
3 | 3 |
|
4 | 4 | <br />
|
5 | 5 |
|
|
15 | 15 | <p>Simple and complete Vue.js testing utilities that encourage good testing practices.</p>
|
16 | 16 |
|
17 | 17 | <p>Vue Testing Library is a lightweight adapter built on top of <a href="https://github.com/testing-library/dom-testing-library/">DOM Testing Library</a> and <a href="https://github.com/vuejs/vue-test-utils">@vue/test-utils</a>.</p>
|
18 | | - |
19 | | - |
| 18 | + |
20 | 19 | <br />
|
21 | | - |
22 | | - <p>If you're looking for the Vue 3 version of Vue Testing Library, check out the <a href="https://github.com/testing-library/vue-testing-library/tree/next">next</a> branch.</p> |
| 20 | + |
| 21 | + <p>If you're looking for the Vue 3 version of Vue Testing Library, check out the <a href="https://github.com/testing-library/vue-testing-library/tree/main">main</a> branch.</p> |
| 22 | + |
| 23 | + <p>Vue Testing Library support Vue 2 in its 5.x version range. Bear in mind that it means that <strong>any version bump in the 5.x range may include breaking changes</strong>.</p> |
23 | 24 |
|
24 | 25 | <br />
|
25 | 26 |
|
|
66 | 67 | This module is distributed via `npm` and should be installed as one of your
|
67 | 68 | project's `devDependencies`:
|
68 | 69 |
|
69 | | -If using Vue 2 |
70 | 70 | ```
|
71 | 71 | npm install --save-dev @testing-library/vue@5
|
72 | 72 | ```
|
73 | 73 |
|
74 | | -If using Vue 3 |
75 | | -``` |
76 | | -npm install --save-dev @testing-library/vue |
77 | | -``` |
78 | | - |
79 | 74 | This library has `peerDependencies` listings for `Vue` and
|
80 | 75 | `vue-template-compiler`.
|
81 | 76 |
|
|
0 commit comments