Skip to content

Commit 28f16a4

Browse files
authored
docs(Vue Testing Library): update @vue/test-utils link to vue3 (#1501)
1 parent 1d0657b commit 28f16a4

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

docs/vue-testing-library/api.mdx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The valid Vue Component to be tested.
5858
#### Options
5959

6060
An object containing additional information to be passed to `@vue/test-utils`
61-
[mount](https://vue-test-utils.vuejs.org/api/options.html#mounting-options).
61+
[mount](https://test-utils.vuejs.org/api/#mount).
6262

6363
Additionally, the following options can also be provided:
6464

@@ -171,22 +171,21 @@ This is a simple wrapper around `prettyDOM` which is also exposed and comes from
171171
#### `unmount()`
172172

173173
An alias for `@vue/test-utils`
174-
[destroy](https://vue-test-utils.vuejs.org/api/wrapper/#destroy).
174+
[unmount](https://test-utils.vuejs.org/api/#unmount).
175175

176176
#### `html()`
177177

178-
An alias for `@vue/test-utils`
179-
[html](https://vue-test-utils.vuejs.org/api/wrapper/#html).
178+
An alias for `@vue/test-utils` [html](https://test-utils.vuejs.org/api/#html).
180179

181180
#### `emitted()`
182181

183182
An alias for `@vue/test-utils`
184-
[emitted](https://vue-test-utils.vuejs.org/api/wrapper/#emitted).
183+
[emitted](https://test-utils.vuejs.org/api/#emitted).
185184

186185
#### `rerender(props)`
187186

188187
An alias for `@vue/test-utils`
189-
[setProps](https://test-utils.vuejs.org/api/#setprops).
188+
[setProps](https://test-utils.vuejs.org/api/#setProps).
190189

191190
It returns a Promise through so you can `await rerender(...)`.
192191

docs/vue-testing-library/faq.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ In general, you should avoid mocking out components (see
4343

4444
However if you need to, you can either use Jest's
4545
[mocking feature](https://facebook.github.io/jest/docs/en/manual-mocks.html) or
46-
the [`stubs`][stubs] key provided by @vue/test-utils.
46+
the [`global.stubs`][stubs] key provided by @vue/test-utils.
4747

4848
```js
4949
import {render} from '@testing-library/vue'
@@ -156,8 +156,8 @@ Links:
156156
<!-- prettier-ignore-start -->
157157

158158
[vue-test-utils]: https://github.com/vuejs/vue-test-utils
159-
[mount]: https://vue-test-utils.vuejs.org/api/#mount
160-
[stubs]: https://vue-test-utils.vuejs.org/api/options.html#stubs
161-
[stubs-example]: https://github.com/testing-library/vue-testing-library/blob/master/src/__tests__/stubs.js
159+
[mount]: https://test-utils.vuejs.org/api/#mount
160+
[stubs]: https://test-utils.vuejs.org/api/#global-stubs
161+
[stubs-example]: https://github.com/testing-library/vue-testing-library/blob/main/src/__tests__/stubs.js
162162

163163
<!-- prettier-ignore-end -->

0 commit comments

Comments
 (0)