(ui: ReactElement, options?: RenderOptions)
| 4 | import { SWRConfig } from "swr"; |
| 5 | |
| 6 | function customRender(ui: ReactElement, options?: RenderOptions) { |
| 7 | return render( |
| 8 | <SWRConfig value={{ provider: () => new Map() }}>{ui}</SWRConfig>, |
| 9 | options, |
| 10 | ); |
| 11 | } |
| 12 | |
| 13 | function userRender(ui: ReactElement, options?: RenderOptions) { |
| 14 | return { |