Skip to content

Commit

Permalink
chore:queryClientWrapper 네이밍 표기법을 파스칼 케이스로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
BadaHertz52 committed Aug 4, 2024
1 parent 1df5228 commit cb756fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/hooks/review/useGetDetailedReview/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { renderHook, waitFor } from '@testing-library/react';

import { DETAILED_PAGE_MOCK_API_SETTING_VALUES } from '@/mocks/mockData/detailedReviewMockData';
import queryClientWrapper from '@/queryTestSetup/queryClientWrapper';
import QueryClientWrapper from '@/queryTestSetup/QueryClientWrapper';

import useGetDetailedReview from '.';
// 아래의 테스트는 로그인이 유효하다는 가정하에서 진행
Expand All @@ -14,7 +14,7 @@ describe('리뷰 상세페이지 데이터 요청 테스트', () => {

const { result } = renderHook(
() => useGetDetailedReview({ reviewId, memberId, groupAccessCode: GROUND_ACCESS_CODE }),
{ wrapper: queryClientWrapper },
{ wrapper: QueryClientWrapper },
);

await waitFor(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { EssentialPropsWithChildren } from '@/types';

const queryClient = new QueryClient();

const queryClientWrapper = ({ children }: EssentialPropsWithChildren) => (
const QueryClientWrapper = ({ children }: EssentialPropsWithChildren) => (
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
);

export default queryClientWrapper;
export default QueryClientWrapper;

0 comments on commit cb756fc

Please sign in to comment.