Skip to content

Commit ac0737e

Browse files
authored
Clarify compatible versions for Vue 2 and Vue 3
The `latest` tag of `@testing-library/vue` points to a version that is incompatible with Vue 2. This is not reflected in the documentation so I added the correct versions to the example command.
1 parent 78d1ae6 commit ac0737e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/vue-testing-library/intro.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ In short, Vue Testing Library does three things:
2222

2323
If using Vue2
2424
```
25-
npm install --save-dev @testing-library/vue
25+
npm install --save-dev @testing-library/vue@5
2626
```
2727
If using Vue3
2828
```
29-
npm install --save-dev @testing-library/vue@next
29+
npm install --save-dev @testing-library/vue
3030
```
3131

3232
You can now use all of `DOM Testing Library`'s `getBy`, `getAllBy`, `queryBy`

0 commit comments

Comments
 (0)