How can we improve this snippet ?
unknown
typescript
5 months ago
475 B
2
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