From 65ff29711ee81e3aac969b4f9425f5ad6594a03d Mon Sep 17 00:00:00 2001 From: Akseli Nurmio Date: Tue, 16 Jun 2026 16:25:09 +0300 Subject: [PATCH] Fix wrapper type --- types/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 0b297d6..1d12a19 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,6 +1,6 @@ import { queries, Queries, BoundFunction } from '@testing-library/dom' import { act as preactAct } from 'preact/test-utils' -import { ComponentChild, ComponentType } from 'preact' +import { ComponentChild, ComponentChildren, ComponentType } from 'preact' export * from '@testing-library/dom' @@ -81,7 +81,7 @@ export interface RenderHookOptions { * * @see https://testing-library.com/docs/react-testing-library/api/#wrapper */ - wrapper?: ComponentType<{ children: Element }> + wrapper?: ComponentType<{ children?: ComponentChildren }> } /**