From 1dc33b23bec6d033d65674ac6e1c2dd7e9a71202 Mon Sep 17 00:00:00 2001 From: Joseph R Miles Date: Thu, 19 Nov 2020 02:41:09 -0800 Subject: [PATCH] fix(types): Allow all HTML and SVG elements in render. (#833) Co-authored-by: Sebastian Silbermann --- types/index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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