You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`container`| The HTML element the component is mounted to. | baseElement |
35
34
|`baseElement`| The root HTML element to which the container is appended to. | document.body |
36
-
|`queries`| Queries to bind to the baseElement. See [getQueriesForElement](dom-testing-library/api-helpers.mdx#within-and-getqueriesforelement-apis).| null |
35
+
|`queries`| Queries to bind to the baseElement. See [within](dom-testing-library/api-within.mdx). | null |
37
36
|`hydrate`| Used when the component has already been mounted and requires a rerender. Not needed for most people. The rerender function passed back to you does this already. | false |
38
37
|`wrapper`| A parent component to wrap YourComponent. | null |
|`container`| The HTML element the component is mounted to. |
45
-
|`baseElement`| The root HTML element to which the container is appended to. |
46
-
|`debug`| Logs the baseElement using [prettyDom](dom-testing-library/api-helpers.mdx#prettydom).|
47
-
|`unmount`| Unmounts the component from the container. |
48
-
|`rerender`| Calls render again passing in the original arguments and sets hydrate to true. |
49
-
|`asFragment`| Returns the innerHTML of the container. |
50
-
|`...queries`| Returns all [query functions](dom-testing-library/api-queries.mdx) to be used on the baseElement. If you pass in `query` arguments than this will be those, otherwise all. |
|`container`| The HTML element the component is mounted to. |
44
+
|`baseElement`| The root HTML element to which the container is appended to. |
45
+
|`debug`| Logs the baseElement using [prettyDom](dom-testing-library/api-debugging.mdx#prettydom). |
46
+
|`unmount`| Unmounts the component from the container. |
47
+
|`rerender`| Calls render again passing in the original arguments and sets hydrate to true. |
48
+
|`asFragment`| Returns the innerHTML of the container. |
49
+
|`...queries`| Returns all [query functions](queries/about.mdx) to be used on the baseElement. If you pass in `query` arguments than this will be those, otherwise all. |
|`container`| The HTML element the component is mounted into. |`document.body`|
59
-
|`queries`| Queries to bind to the container. See [getQueriesForElement](dom-testing-library/api-helpers.mdx#within-and-getqueriesforelement-apis). |`null`|
|`container`| The HTML element the component is mounted into. |
66
65
|`component`| The newly created Svelte component. Generally, this should only be used when testing exported functions, or when you're testing developer facing API's. Outside of said cases avoid using the component directly to build tests, instead of interacting with the rendered Svelte component, work with the DOM. Have a read of [Avoid the Test User](https://kentcdodds.com/blog/avoid-the-test-user) by Kent C. Dodds to understand the difference between the **end user** and **developer user**. |
67
-
|`debug`| Logs the `container` using [prettyDom](dom-testing-library/api-helpers.mdx#prettydom).|
66
+
|`debug`| Logs the `container` using [prettyDom](dom-testing-library/api-debugging.mdx/#prettydom). |
68
67
|`unmount`| Unmounts the component from the `target` by calling `component.$destroy()`. |
69
68
|`rerender`| Calls render again destroying the old component, and mounting the new component on the original `target` with any new options passed in. |
70
-
|`...queries`| Returns all [query functions](dom-testing-library/api-queries.mdx) that are bound to the `container`. If you pass in `query` arguments than this will be those, otherwise all. |
69
+
|`...queries`| Returns all [query functions](queries/about.mdx) that are bound to the `container`. If you pass in `query` arguments than this will be those, otherwise all.|
0 commit comments