Skip to content

Commit

Permalink
feat: sut test helper
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarhenrq committed Oct 8, 2023
1 parent 9daa99b commit 64e9096
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/utils/helpers/Sut.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import GlobalStyle from '@styles/global';

import { BrowserRouter } from 'react-router-dom';

import FiltersProvider from '@contexts/filters';

type Props = {
children: React.ReactNode;
};

const Sut = ({ children }: Props) => (
<>
<GlobalStyle />
<FiltersProvider>
<BrowserRouter>{children}</BrowserRouter>
</FiltersProvider>
</>
);

export default Sut;

0 comments on commit 64e9096

Please sign in to comment.