From 792e458181b71975a51beeb2eb4611080828bb94 Mon Sep 17 00:00:00 2001 From: pakxe Date: Sat, 17 Aug 2024 00:51:04 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=ED=8C=8C=EC=9D=BC=20=EC=9C=84?= =?UTF-8?q?=EC=B9=98=20=EB=B3=80=EA=B2=BD=EC=9C=BC=EB=A1=9C=20=EC=9D=B8?= =?UTF-8?q?=ED=95=9C=20import=20=EA=B2=BD=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/App.tsx | 2 +- .../useDeleteMemberAction/useDeleteMemberAction.test.tsx | 2 +- .../useSearchMemberReportList.test.tsx | 2 +- client/src/hooks/useStepList/useStepList.test.tsx | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index 64de1e68c..14a019e5d 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -6,7 +6,7 @@ import {ToastProvider} from '@components/Toast/ToastProvider'; import {GlobalStyle} from './GlobalStyle'; // import toast from 'react-simple-toasts'; -import {ErrorProvider} from './ErrorProvider'; +import {ErrorProvider} from './hooks/useError/ErrorProvider'; import UnhandledErrorBoundary from './UnhandledErrorBoundary'; const App: React.FC = () => { diff --git a/client/src/hooks/useDeleteMemberAction/useDeleteMemberAction.test.tsx b/client/src/hooks/useDeleteMemberAction/useDeleteMemberAction.test.tsx index 9ca4d7bff..0e3ae3fdb 100644 --- a/client/src/hooks/useDeleteMemberAction/useDeleteMemberAction.test.tsx +++ b/client/src/hooks/useDeleteMemberAction/useDeleteMemberAction.test.tsx @@ -6,7 +6,7 @@ import {BillStep, MemberAction, MemberStep} from 'types/serviceType'; import stepListJson from '../../mocks/stepList.json'; import StepListProvider, {useStepList} from '../useStepList/useStepList'; -import {ErrorProvider} from '../../ErrorProvider'; +import {ErrorProvider} from '../useError/ErrorProvider'; import invalidMemberStepListJson from '../../mocks/invalidMemberStepList.json'; import useDeleteMemberAction from './useDeleteMemberAction'; diff --git a/client/src/hooks/useSearchMemberReportList/useSearchMemberReportList.test.tsx b/client/src/hooks/useSearchMemberReportList/useSearchMemberReportList.test.tsx index 2688a9a04..667f0bfb6 100644 --- a/client/src/hooks/useSearchMemberReportList/useSearchMemberReportList.test.tsx +++ b/client/src/hooks/useSearchMemberReportList/useSearchMemberReportList.test.tsx @@ -2,7 +2,7 @@ import {renderHook, waitFor} from '@testing-library/react'; import {MemoryRouter} from 'react-router-dom'; import reportListJson from '../../mocks/reportList.json'; -import {ErrorProvider} from '../../ErrorProvider'; +import {ErrorProvider} from '../useError/ErrorProvider'; import useSearchMemberReportList from './useSearchMemberReportList'; diff --git a/client/src/hooks/useStepList/useStepList.test.tsx b/client/src/hooks/useStepList/useStepList.test.tsx index 81963b73a..ae4cca978 100644 --- a/client/src/hooks/useStepList/useStepList.test.tsx +++ b/client/src/hooks/useStepList/useStepList.test.tsx @@ -6,7 +6,7 @@ import {Bill} from 'types/serviceType'; import StepListProvider, {useStepList} from '../useStepList/useStepList'; import stepListJson from '../../mocks/stepList.json'; -import {ErrorProvider} from '../../ErrorProvider'; +import {ErrorProvider} from '../useError/ErrorProvider'; const stepListMockData = stepListJson; @@ -105,7 +105,7 @@ describe('useStepList', () => { it('provider안에서 호출되지 않으면 에러를 던진다.', () => { expect(() => { - const {result} = renderHook(() => useStepList()); + const _ = renderHook(() => useStepList()); }).toThrow('useStepList는 StepListProvider 내에서 사용되어야 합니다.'); }); });