-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* hotfix: 이름 수정 * chore: 이름 수정 * fix: router 로더 원상복구 * feat: 이력서 관련 데이터 가져오기 msw * chore: position 타입 사용 * refactor: 이력서 카테고리 낙관적 업데이트 * fix: skills undefined 방어 코드 * feat: 참고링크 get, 기본정보 patch 핸들러 작성 * feat: 참고링크 post, delete 핸들러 작성 * fix: 이력서 포지션 타입 풀기
- Loading branch information
1 parent
995a815
commit fc0b7da
Showing
7 changed files
with
102 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,70 @@ | ||
import { HttpResponse, http } from 'msw'; | ||
import { environments } from '~/config/environments'; | ||
|
||
const referenceLinkMock = [ | ||
{ | ||
componentId: 0, | ||
reflectFeedback: false, | ||
createdDate: '2024-05-01T23:59:59.999Z', | ||
linkType: 'GITHUB', | ||
url: 'https://github.com/resumeme/Frontend', | ||
}, | ||
]; | ||
const MOCK_RESUME_ID = 0; | ||
export const handlers = [ | ||
http.post(`${environments.baseUrlEnv()}/v1/resumes`, () => { | ||
return HttpResponse.json({ id: MOCK_RESUME_ID }); | ||
}), | ||
http.get(`${environments.baseUrlEnv()}/v1/resumes/:id/basic`, () => { | ||
return HttpResponse.json(); | ||
}), | ||
// patchResumeBasicInfo | ||
http.patch(`${environments.baseUrlEnv()}/v2/resumes/:id`, () => { | ||
return HttpResponse.json(); | ||
}), | ||
http.post(`${environments.baseUrlEnv()}/v1/resumes/:id/links`, () => { | ||
return HttpResponse.json(); | ||
}), | ||
http.delete(`${environments.baseUrlEnv()}/v1/resumes/:id/components/:linkId`, () => { | ||
return HttpResponse.json(); | ||
}), | ||
http.get(`${environments.baseUrlEnv()}/v1/resumes/:id/links`, () => { | ||
return HttpResponse.json(referenceLinkMock); | ||
}), | ||
http.get(`${environments.baseUrlEnv()}/v1/resumes/:id/careers`, () => { | ||
return HttpResponse.json(); | ||
}), | ||
http.get(`${environments.baseUrlEnv()}/v1/resumes/:id/projects`, () => { | ||
return HttpResponse.json(); | ||
}), | ||
http.get(`${environments.baseUrlEnv()}/v1/resumes/:id/activities`, () => { | ||
return HttpResponse.json(); | ||
}), | ||
http.get(`${environments.baseUrlEnv()}/v1/resumes/:id/certifications`, () => { | ||
return HttpResponse.json(); | ||
}), | ||
http.get(`${environments.baseUrlEnv()}/v1/resumes/:id/foreignLanguages`, () => { | ||
return HttpResponse.json(); | ||
}), | ||
http.get(`${environments.baseUrlEnv()}/v1/resumes/:id/trainings`, () => { | ||
return HttpResponse.json(); | ||
}), | ||
http.post(`${environments.baseUrlEnv()}/v1/resumes/:id/careers`, () => { | ||
return HttpResponse.json(); | ||
}), | ||
http.post(`${environments.baseUrlEnv()}/v1/resumes/:id/projects`, () => { | ||
return HttpResponse.json(); | ||
}), | ||
http.post(`${environments.baseUrlEnv()}/v1/resumes/:id/activities`, () => { | ||
return HttpResponse.json(); | ||
}), | ||
http.post(`${environments.baseUrlEnv()}/v1/resumes/:id/certifications`, () => { | ||
return HttpResponse.json(); | ||
}), | ||
http.post(`${environments.baseUrlEnv()}/v1/resumes/:id/foreignLanguages`, () => { | ||
return HttpResponse.json(); | ||
}), | ||
http.post(`${environments.baseUrlEnv()}/v1/resumes/:id/trainings`, () => { | ||
return HttpResponse.json(); | ||
}), | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters