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
Copy file name to clipboardExpand all lines: types/index.d.ts
+7-4
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,10 @@ export * from '@testing-library/dom'
14
14
export type RenderResult<
15
15
Q extends Queries = typeof queries,
16
16
Container extends Element | DocumentFragment = HTMLElement,
17
+
BaseElement extends Element | DocumentFragment = Container,
17
18
> = {
18
19
container: Container
19
-
baseElement: Element
20
+
baseElement: BaseElement
20
21
debug: (
21
22
baseElement?:
22
23
| Element
@@ -33,6 +34,7 @@ export type RenderResult<
33
34
export interface RenderOptions<
34
35
Q extends Queries = typeof queries,
35
36
Container extends Element | DocumentFragment = HTMLElement,
37
+
BaseElement extends Element | DocumentFragment = Container,
36
38
> {
37
39
/**
38
40
* By default, React Testing Library will create a div and append that div to the document.body. Your React component will be rendered in the created div. If you provide your own HTMLElement container via this option,
0 commit comments