@@ -15,7 +15,7 @@ It also exposes these methods:
15
15
- [ ` ...queries ` ] ( #queries )
16
16
- [ ` container ` ] ( #container )
17
17
- [ ` baseElement ` ] ( #baseelement )
18
- - [ ` debug ` ] ( #debug )
18
+ - [ ` debug ` ] ( #debugelement )
19
19
- [ ` unmount ` ] ( #unmount )
20
20
- [ ` html ` ] ( #html )
21
21
- [ ` emitted ` ] ( #emitted )
@@ -32,19 +32,19 @@ It also exposes these methods:
32
32
The ` render ` function is the only way of rendering components in Vue Testing
33
33
Library.
34
34
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.
36
36
37
37
``` js
38
38
function render (Component , options , callbackFunction ) {
39
39
return {
40
40
... DOMTestingLibraryQueries,
41
41
container,
42
42
baseElement,
43
- debug,
43
+ debug (element) ,
44
44
unmount,
45
45
html,
46
46
emitted,
47
- rerender,
47
+ rerender (props) ,
48
48
}
49
49
}
50
50
```
@@ -147,7 +147,7 @@ renders its HTML directly in the body.
147
147
> Note: the queries returned by the ` render ` looks into ` baseElement ` , so you
148
148
> can use queries to test your portal component without the ` baseElement ` .
149
149
150
- #### ` debug `
150
+ #### ` debug(element) `
151
151
152
152
This method is a shortcut for ` console.log(prettyDOM(element)) ` .
153
153
@@ -186,13 +186,10 @@ An alias for `@vue/test-utils`
186
186
#### ` rerender(props) `
187
187
188
188
An 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 ) .
190
190
191
191
It returns a Promise through so you can ` await rerender(...) ` .
192
192
193
- See
194
- [ update properties example] ( vue-testing-library/examples.mdx#example-updating-properties ) .
195
-
196
193
---
197
194
198
195
## ` fireEvent `
0 commit comments