@@ -15,7 +15,7 @@ It also exposes these methods:
1515 - [ ` ...queries ` ] ( #queries )
1616 - [ ` container ` ] ( #container )
1717 - [ ` baseElement ` ] ( #baseelement )
18- - [ ` debug ` ] ( #debug )
18+ - [ ` debug ` ] ( #debugelement )
1919 - [ ` unmount ` ] ( #unmount )
2020 - [ ` html ` ] ( #html )
2121 - [ ` emitted ` ] ( #emitted )
@@ -32,19 +32,19 @@ It also exposes these methods:
3232The ` render ` function is the only way of rendering components in Vue Testing
3333Library.
3434
35- It takes up to 3 parameters and returns an object with some helper methods.
35+ It takes up to 2 parameters and returns an object with some helper methods.
3636
3737``` js
3838function render (Component , options , callbackFunction ) {
3939 return {
4040 ... DOMTestingLibraryQueries,
4141 container,
4242 baseElement,
43- debug,
43+ debug (element) ,
4444 unmount,
4545 html,
4646 emitted,
47- rerender,
47+ rerender (props) ,
4848 }
4949}
5050```
@@ -147,7 +147,7 @@ renders its HTML directly in the body.
147147> Note: the queries returned by the ` render ` looks into ` baseElement ` , so you
148148> can use queries to test your portal component without the ` baseElement ` .
149149
150- #### ` debug `
150+ #### ` debug(element) `
151151
152152This method is a shortcut for ` console.log(prettyDOM(element)) ` .
153153
@@ -186,13 +186,10 @@ An alias for `@vue/test-utils`
186186#### ` rerender(props) `
187187
188188An alias for ` @vue/test-utils `
189- [ setProps] ( https://vue- test-utils.vuejs.org/api/wrapper /#setprops ) .
189+ [ setProps] ( https://test-utils.vuejs.org/api/#setprops ) .
190190
191191It returns a Promise through so you can ` await rerender(...) ` .
192192
193- See
194- [ update properties example] ( vue-testing-library/examples.mdx#example-updating-properties ) .
195-
196193---
197194
198195## ` fireEvent `
0 commit comments