How can we improve this snippet ?
unknown
typescript
a year ago
475 B
5
Indexable
const getComponentStructure = ({ queryParam = '', isDraft = false }) => {
const client = new QueryClient();
return (
<QueryClientProvider client={client}>
<MemoryRouter>
<MantineProvider>
<BankPaymentItem isDraft={isDraft} locationGroupId="TEST_LOCATION_GROUP_ID" />
</MantineProvider>
</MemoryRouter>
</QueryClientProvider>
);
};
const { getByTestId } = render(getComponentStructure({ queryParam: '', isDraft: false }));
Editor is loading...
Leave a Comment