Skip to content

Commit

Permalink
chore: 파일 위치 변경으로 인한 import 경로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
pakxe committed Aug 16, 2024
1 parent 399f100 commit 792e458
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
4 changes: 2 additions & 2 deletions client/src/hooks/useStepList/useStepList.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -105,7 +105,7 @@ describe('useStepList', () => {

it('provider안에서 호출되지 않으면 에러를 던진다.', () => {
expect(() => {
const {result} = renderHook(() => useStepList());
const _ = renderHook(() => useStepList());
}).toThrow('useStepList는 StepListProvider 내에서 사용되어야 합니다.');
});
});

0 comments on commit 792e458

Please sign in to comment.