(ui: ReactElement, options?: Omit<RenderOptions, 'wrapper'>)
| 17 | } |
| 18 | |
| 19 | function 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 |
| 25 | export function setup(ui: ReactElement, options?: Omit<RenderOptions, 'wrapper'>) { |
nothing calls this directly
no test coverage detected