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 내에서 사용되어야 합니다.'); }); });