Skip to content

무료배송 기준 금액 경계 조건 수정 - #3

Open
wlrnjs wants to merge 1 commit into
mainfrom
fix/free-shipping-boundary
Open

wlrnjs wants to merge 1 commit into
mainfrom
fix/free-shipping-boundary

Conversation

@wlrnjs

@wlrnjs wlrnjs commented Sep 20, 2026

Copy link
Copy Markdown
Member

문제

README 의 금액 정책은 "주문 금액이 50,000원 이상이면 무료배송" 인데,
CartSummary 는 기준을 초과할 때만 무료로 처리한다.
그래서 상품 금액이 정확히 50,000원일 때 배송비 3,000원이 붙는다.

수정

src/components/CartSummary.tsx 의 비교 연산자를 > 에서 >= 로 바꾼다.

검증

  • npm run typecheck 통과
  • npm test 13개 전부 통과 (main 에서는 경계값 테스트 1개가 실패한다)

Generated with Claude Code

정책은 50,000원 이상 무료배송인데 CartSummary 가 초과일 때만 무료로
처리해 경계 금액에서 배송비 3,000원이 붙었다.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dante-agent

dante-agent Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

Dante — 1 of 4 tests failed

Tests 4 total · 3 passed · 1 failed
Components 1 changed
Duration 6.6s

Failed

  • src/components/CartSummary.dante.test.tsx › CartSummary 쿠폰 할인이 있으면 음수 표기(-)로 렌더링한다 — AssertionError: expected NaN to be greater than 0
Components in this PR
Component Change Tests
CartSummary changed 4

Open in Dante · Re-run

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.

1 participant