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
35
|`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#within-and-getqueriesforelement-apis). | null |
36
+
|`queries`| Queries to bind to the baseElement. See [getQueriesForElement](dom-testing-library/api-helpers.mdx#within-and-getqueriesforelement-apis). | null |
37
37
|`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
38
|`wrapper`| A parent component to wrap YourComponent. | null |
|`container`| The HTML element the component is mounted to. |
45
45
|`baseElement`| The root HTML element to which the container is appended to. |
46
-
|`debug`| Logs the baseElement using [prettyDom](https://testing-library.com/docs/dom-testing-library/api-helpers#prettydom). |
46
+
|`debug`| Logs the baseElement using [prettyDom](dom-testing-library/api-helpers.mdx#prettydom). |
47
47
|`unmount`| Unmounts the component from the container. |
48
48
|`rerender`| Calls render again passing in the original arguments and sets hydrate to true. |
49
49
|`asFragment`| Returns the innerHTML of the container. |
50
-
|`...queries`| Returns all [query functions](https://testing-library.com/docs/dom-testing-library/api-queries) to be used on the baseElement. If you pass in `query` arguments than this will be those, otherwise all. |
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. |
51
51
52
52
## `cleanup`
53
53
@@ -82,7 +82,7 @@ Even thought it's for React, it gives you an idea of why it's needed.
82
82
## `fireEvent`
83
83
84
84
Passes it to the @testing-library/dom
85
-
[fireEvent](../dom-testing-library/api-events). It's also wrapped in `act` so
85
+
[fireEvent](dom-testing-library/api-events.mdx). It's also wrapped in `act` so
86
86
you don't need to worry about doing it.
87
87
88
88
📝 Keep in mind mainly when using `h / Preact.createElement` that React uses a
0 commit comments