diff --git a/types/index.d.ts b/types/index.d.ts index 953f05d6..3dcaf10c 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -11,13 +11,13 @@ import {act as reactAct} from 'react-dom/test-utils' export * from '@testing-library/dom' export type RenderResult = { - container: HTMLElement - baseElement: HTMLElement + container: Element + baseElement: Element debug: ( baseElement?: - | HTMLElement + | Element | DocumentFragment - | Array, + | Array, maxLength?: number, options?: prettyFormat.OptionsReceived, ) => void @@ -27,8 +27,8 @@ export type RenderResult = { } & {[P in keyof Q]: BoundFunction} export interface RenderOptions { - container?: HTMLElement - baseElement?: HTMLElement + container?: Element + baseElement?: Element hydrate?: boolean queries?: Q wrapper?: React.ComponentType