Skip to content

Commit ffa2221

Browse files
committed
Test linked issue
1 parent 2010eb1 commit ffa2221

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

types/test.tsx

+11
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,17 @@ export function testQueries() {
100100
)
101101
}
102102

103+
export function wrappedRender(
104+
ui: React.ReactElement,
105+
options?: pure.RenderOptions,
106+
) {
107+
const Wrapper = ({children}: {children: React.ReactElement}): JSX.Element => {
108+
return <div>{children}</div>
109+
}
110+
111+
return pure.render(ui, {wrapper: Wrapper, ...options})
112+
}
113+
103114
/*
104115
eslint
105116
testing-library/prefer-explicit-assert: "off",

0 commit comments

Comments
 (0)