Skip to content

Commit a7535eb

Browse files
committed
fix(render): Don't reject wrapper types based on statics
1 parent 1510e80 commit a7535eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export interface RenderOptions<
7070
*
7171
* @see https://testing-library.com/docs/react-testing-library/api/#wrapper
7272
*/
73-
wrapper?: React.ComponentType<{children: React.ReactElement}>
73+
wrapper?: React.JSXElementConstructor<{children: React.ReactElement}>
7474
}
7575

7676
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>

0 commit comments

Comments
 (0)