MCPcopy
hub / github.com/obytes/react-native-template-obytes / customRender

Function customRender

src/lib/test-utils.tsx:19–22  ·  view source on GitHub ↗
(ui: ReactElement, options?: Omit<RenderOptions, 'wrapper'>)

Source from the content-addressed store, hash-verified

17}
18
19function customRender(ui: ReactElement, options?: Omit<RenderOptions, 'wrapper'>) {
20 const Wrapper = createAppWrapper(); // make sure we have a new wrapper for each render
21 return render(ui, { wrapper: Wrapper, ...options });
22}
23
24// use this if you want to test user events
25export function setup(ui: ReactElement, options?: Omit<RenderOptions, 'wrapper'>) {

Callers

nothing calls this directly

Calls 1

createAppWrapperFunction · 0.85

Tested by

no test coverage detected