Skip to content

Commit 3853ede

Browse files
export «AllTheProviders» for external use
enable reuse of «AllTheProviders» in other test modules by exporting it, improving test setup consistency and flexibility
1 parent 1215152 commit 3853ede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { MemoryRouter } from 'react-router-dom';
1010
import { DataSourceContextProvider } from '../public/contexts';
1111
import { ToastProvider } from '../public/dashboard-assistant/hooks/use-toast';
1212

13-
const AllTheProviders: FC<{ children: React.ReactNode }> = ({ children }) => {
13+
export const AllTheProviders: FC<{ children: React.ReactNode }> = ({ children }) => {
1414
return (
1515
<I18nProvider>
1616
<MemoryRouter>

0 commit comments

Comments
 (0)