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.
5858#### Options
5959
6060An 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
6363Additionally, 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
173173An 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
183182An 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
188187An alias for ` @vue/test-utils `
189- [ setProps] ( https://test-utils.vuejs.org/api/#setprops ) .
188+ [ setProps] ( https://test-utils.vuejs.org/api/#setProps ) .
190189
191190It returns a Promise through so you can ` await rerender(...) ` .
192191
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ In general, you should avoid mocking out components (see
4343
4444However 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
4949import {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 -->
You can’t perform that action at this time.
0 commit comments