import React, { type ReactElement } from 'react';
import { SWRConfig } from 'swr';
import { type RenderOptions, render } from '@testing-library/react';
export const swrWrapper = ({ children }) => {
return (
new Map(),
}}
>
{children}
);
};
export const renderWithSwr = (ui: ReactElement, options?: Omit) =>
render(ui, { wrapper: swrWrapper, ...options });