Skip to content

Commit

Permalink
Set appstate ready state
Browse files Browse the repository at this point in the history
  • Loading branch information
timvanoostrom committed Jan 9, 2025
1 parent c004e8e commit 1c3fd2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/hooks/useTrackThemas.hook.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ReactNode } from 'react';
import { renderHook } from '@testing-library/react';
import { MutableSnapshot, RecoilRoot } from 'recoil';

import { appStateAtom } from './useAppState';
import { appStateAtom, appStateReadyAtom } from './useAppState';
import { useTrackThemas } from './useTrackThemas.hook';
import { AppState } from '../../universal/types';
import { trackEvent } from '../helpers/monitoring';
Expand Down Expand Up @@ -39,6 +39,7 @@ describe('useTrackThemas', () => {

function initializeState(snapshot: MutableSnapshot) {
snapshot.set(appStateAtom, testState);
snapshot.set(appStateReadyAtom, true);
}

const mockApp = ({ children }: { children: ReactNode }) => (
Expand Down

0 comments on commit 1c3fd2d

Please sign in to comment.