Skip to content

박가연 sprint 3 과제 제출#48

Open
qlwlsmwoddl0813-wq wants to merge 1 commit intocodeit-sprint-fullstack:basicfrom
qlwlsmwoddl0813-wq:basic-박가연

Hidden character warning

The head ref may contain hidden characters: "basic-\ubc15\uac00\uc5f0"
Open

박가연 sprint 3 과제 제출#48
qlwlsmwoddl0813-wq wants to merge 1 commit intocodeit-sprint-fullstack:basicfrom
qlwlsmwoddl0813-wq:basic-박가연

Conversation

@qlwlsmwoddl0813-wq
Copy link
Collaborator

No description provided.

@wseungjin wseungjin self-requested a review December 29, 2025 13:56
Copy link
Collaborator

@wseungjin wseungjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

한주 수고 많으셨습니다~

return response.data;
})
.catch(function (error) {
console.log("목록 조회 중 에러 발생: " + error.message);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

파일로 로깅하거나, 네트워크로 로깅을하거나, 디비로 로깅을 하면 좋을거 같아요. 지금은 말고 나중에 한번 해보시면 좋을거 같아요.

});
}

export function createArticle(data) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

createArticle 데이터 검증 validation을 하면 좋을거같아요.

});
}

export function patchArticle(id, updateData) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

patchArticle 데이터 검증 validation을 하면 좋을거같아요. (2)


export async function createProduct(item) {
try {
const response = await axios.post(PRODUCT_URL, {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

validation을 할때 400 Bad Request를 잘 활용해보시면 좋겠습니다.

} from "./ProductService.js";

async function main() {
console.log("--- 테스트를 시작합니다 ---");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test코드 jest, mocha 를 사용해서 실제로 테스트 코드를 짜보고 돌려봐도 좋을거 같아요.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants