Skip to content

Commit

Permalink
✅ Add loadingprovider around test where it was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
mariush2 committed Jan 15, 2025
1 parent 947bfdb commit dbf967f
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/organisms/SideBar/MenuItem.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,17 @@ test('should hide if featureUuid is not in my features', () => {
return (
<QueryClientProvider client={queryClient}>
<FeatureToggleProvider>
<MemoryRouter initialEntries={['/']}>
<Routes>
<Route
path="/"
element={<SideBarProvider>{children}</SideBarProvider>}
/>
<Route path="/page1" element={<p>Page 1</p>} />
</Routes>
</MemoryRouter>
<LoadingProvider>
<MemoryRouter initialEntries={['/']}>
<Routes>
<Route
path="/"
element={<SideBarProvider>{children}</SideBarProvider>}
/>
<Route path="/page1" element={<p>Page 1</p>} />
</Routes>
</MemoryRouter>
</LoadingProvider>
</FeatureToggleProvider>
</QueryClientProvider>
);
Expand Down

0 comments on commit dbf967f

Please sign in to comment.