Skip to content

Commit

Permalink
fix: add test context provider
Browse files Browse the repository at this point in the history
  • Loading branch information
ilasw committed Jan 31, 2025
1 parent 3cf9e05 commit ece4046
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/shared/__tests__/helpers/boot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { LazyModalElement } from '../../src/components/modals/LazyModalElement';
import LogContext from '../../src/contexts/LogContext';
import type { LogContextData } from '../../src/hooks/log/useLogContextData';
import { ChecklistViewState } from '../../src/lib/checklist';
import { PaymentContextProvider } from '../../src/contexts/PaymentContext';

interface TestBootProviderProps {
children: ReactNode;
Expand Down Expand Up @@ -116,8 +117,10 @@ export const TestBootProvider = ({
value={{ ...defaultLogContextData, ...log }}
>
<NotificationsContextProvider {...notification}>
{children}
<LazyModalElement />
<PaymentContextProvider>
{children}
<LazyModalElement />
</PaymentContextProvider>
</NotificationsContextProvider>
</LogContext.Provider>
</SettingsContext.Provider>
Expand Down

0 comments on commit ece4046

Please sign in to comment.