diff --git a/apps/bottle/src/app/create-profile/_steps/MBTI/MBTI.spec.tsx b/apps/bottle/src/app/create-profile/_steps/MBTI/MBTI.spec.tsx deleted file mode 100644 index 9e67942..0000000 --- a/apps/bottle/src/app/create-profile/_steps/MBTI/MBTI.spec.tsx +++ /dev/null @@ -1,40 +0,0 @@ -import { StepProvider } from '@/features/steps/StepProvider'; -import { userInfoQueryOptions } from '@/store/query/useUserInfoQuery'; -import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; -import { render } from '@testing-library/react'; -import { CreateProfileProvider } from '../../CreateProfileProvider'; -import { MBTI } from '.'; - -vi.mock('next/navigation', () => ({ - useSearchParams: () => ({ get: vi.fn() }), - useRouter: () => ({ push: vi.fn() }), -})); - -it('sets previous selected MBTI to initial state for each mbti selections', async () => { - const testClient = new QueryClient({ - defaultOptions: { - queries: { - staleTime: Infinity, - gcTime: Infinity, - }, - }, - }); - testClient.setQueryData(userInfoQueryOptions({ accessToken: '', refreshToken: '' }).queryKey, { name: 'taehwan' }); - - const MBTIRender = () => ( - - - - - - - - ); - - const screen = render(); - const EButton = screen.getByText('E'); - const nextButton = screen.getByText('다음'); - - expect(EButton).toHaveAttribute('aria-selected', 'true'); - expect(nextButton).not.toBeDisabled(); -}); diff --git a/apps/bottle/src/features/funnel-values/createFunnelValuesContext.tsx b/apps/bottle/src/features/funnel-values/createFunnelValuesContext.tsx index 893dc93..47e2281 100644 --- a/apps/bottle/src/features/funnel-values/createFunnelValuesContext.tsx +++ b/apps/bottle/src/features/funnel-values/createFunnelValuesContext.tsx @@ -9,6 +9,9 @@ export interface FunnelValuesContext { getValue(key: K): I[K] | undefined; } +/** + * @deprecated + */ export function createFunnelValuesContext() { const Context = createContext | null>(null); diff --git a/apps/bottle/src/features/steps/StepProvider.tsx b/apps/bottle/src/features/steps/StepProvider.tsx index f58b9ee..2987d1e 100644 --- a/apps/bottle/src/features/steps/StepProvider.tsx +++ b/apps/bottle/src/features/steps/StepProvider.tsx @@ -22,6 +22,9 @@ interface StepProviderProps { const STEP_PARAM_KEY = 'step'; +/** + * @deprecated + */ export function StepProvider({ children, maxStep, uri, onExit, onComplete }: StepProviderProps) { const searchParams = useSearchParams(); const step = useMemo(() => Number(searchParams.get(STEP_PARAM_KEY) ?? '1'), [searchParams]);