Skip to content

Commit 54057ef

Browse files
committed
Verify the fix worked for wider props
1 parent a7535eb commit 54057ef

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

types/test.tsx

+17
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,23 @@ export function wrappedRenderB(
124124
return pure.render(ui, {wrapper: Wrapper, ...options})
125125
}
126126

127+
export function wrappedRenderC(
128+
ui: React.ReactElement,
129+
options?: pure.RenderOptions,
130+
) {
131+
interface AppWrapperProps {
132+
userProviderProps?: {user: string}
133+
}
134+
const AppWrapperProps: React.FunctionComponent<AppWrapperProps> = ({
135+
children,
136+
userProviderProps = {user: 'TypeScript'},
137+
}) => {
138+
return <div data-testid={userProviderProps.user}>{children}</div>
139+
}
140+
141+
return pure.render(ui, {wrapper: AppWrapperProps, ...options})
142+
}
143+
127144
/*
128145
eslint
129146
testing-library/prefer-explicit-assert: "off",

0 commit comments

Comments
 (0)