diff --git a/types/testing-library__react/index.d.ts b/types/testing-library__react/index.d.ts index 6c7404ef0b..5ac83afed5 100644 --- a/types/testing-library__react/index.d.ts +++ b/types/testing-library__react/index.d.ts @@ -5,6 +5,7 @@ // Sebastian Silbermann // Weyert de Boer // Ifiok Jr. +// Daniel Afonso // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.0 @@ -16,7 +17,7 @@ export * from '@testing-library/dom'; export type RenderResult = { container: HTMLElement; baseElement: HTMLElement; - debug: (baseElement?: HTMLElement | DocumentFragment) => void; + debug: (baseElement?: HTMLElement | DocumentFragment | Array) => void; rerender: (ui: React.ReactElement) => void; unmount: () => boolean; asFragment: () => DocumentFragment; diff --git a/types/testing-library__react/testing-library__react-tests.tsx b/types/testing-library__react/testing-library__react-tests.tsx index 1b4b4849ed..82914a91b8 100644 --- a/types/testing-library__react/testing-library__react-tests.tsx +++ b/types/testing-library__react/testing-library__react-tests.tsx @@ -46,3 +46,13 @@ async function testFireEvent() { const { container } = render(