File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ The valid Vue Component to be tested.
58
58
#### Options
59
59
60
60
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 ) .
62
62
63
63
Additionally, the following options can also be provided:
64
64
@@ -171,22 +171,21 @@ This is a simple wrapper around `prettyDOM` which is also exposed and comes from
171
171
#### ` unmount() `
172
172
173
173
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 ) .
175
175
176
176
#### ` html() `
177
177
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 ) .
180
179
181
180
#### ` emitted() `
182
181
183
182
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 ) .
185
184
186
185
#### ` rerender(props) `
187
186
188
187
An alias for ` @vue/test-utils `
189
- [ setProps] ( https://test-utils.vuejs.org/api/#setprops ) .
188
+ [ setProps] ( https://test-utils.vuejs.org/api/#setProps ) .
190
189
191
190
It returns a Promise through so you can ` await rerender(...) ` .
192
191
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ In general, you should avoid mocking out components (see
43
43
44
44
However if you need to, you can either use Jest's
45
45
[ 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 .
47
47
48
48
``` js
49
49
import {render } from ' @testing-library/vue'
@@ -156,8 +156,8 @@ Links:
156
156
<!-- prettier-ignore-start -->
157
157
158
158
[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
162
162
163
163
<!-- prettier-ignore-end -->
You can’t perform that action at this time.
0 commit comments