We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2010eb1 commit ffa2221Copy full SHA for ffa2221
types/test.tsx
@@ -100,6 +100,17 @@ export function testQueries() {
100
)
101
}
102
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
114
/*
115
eslint
116
testing-library/prefer-explicit-assert: "off",
0 commit comments