Skip to content

Commit dfdc067

Browse files
committed
Patched types to allow all HTML and SVG elements.
1 parent 007b0b7 commit dfdc067

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

types/index.d.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import {act as reactAct} from 'react-dom/test-utils'
1111
export * from '@testing-library/dom'
1212

1313
export type RenderResult<Q extends Queries = typeof queries> = {
14-
container: HTMLElement
15-
baseElement: HTMLElement
14+
container: Element
15+
baseElement: Element
1616
debug: (
1717
baseElement?:
18-
| HTMLElement
18+
| Element
1919
| DocumentFragment
20-
| Array<HTMLElement | DocumentFragment>,
20+
| Array<Element | DocumentFragment>,
2121
maxLength?: number,
2222
options?: prettyFormat.OptionsReceived,
2323
) => void
@@ -27,8 +27,8 @@ export type RenderResult<Q extends Queries = typeof queries> = {
2727
} & {[P in keyof Q]: BoundFunction<Q[P]>}
2828

2929
export interface RenderOptions<Q extends Queries = typeof queries> {
30-
container?: HTMLElement
31-
baseElement?: HTMLElement
30+
container?: Element
31+
baseElement?: Element
3232
hydrate?: boolean
3333
queries?: Q
3434
wrapper?: React.ComponentType

0 commit comments

Comments
 (0)