Repository navigation
test: guard the fork's plan-billing removal against upstream merges - #29
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 요약
포크가 플랜 결제를 제거한 상태(PR #2)가 원본 병합 때 조용히 되살아나는 것을 잡는 가드 테스트
src/lib/plan-billing-removed.test.ts를 추가합니다. 코드 변경은 없고 테스트 1개 파일뿐입니다.이유
원본은 포크가 지웠거나 스텁으로 바꾼 경로에 실제 결제 코드를 계속 둡니다. 병합하면 지운 파일이 다시 생기거나 스텁이 원본 구현으로 바뀌는데, 컴파일도 기존 테스트도 이를 잡지 못합니다. PR #26(원본 0.1.157 병합)에서도 이 때문에 스텁 5개를 손으로 되돌렸습니다.
검사 내용
BoatOffer.tsx포함)cloud-plan.ts가 어떤 계정(유료, 체험, 크레딧 포함)에도 "플랜 없음, 살 것 없음"을 답하는지병합 때 원본이 새 결제 화면을 추가하면
REMOVED목록에 경로를 더하면 됩니다.테스트 방법
Before / After
cloud-plan.ts와CloudAddDialog.tsx를 되돌림)CloudAddDialog.tsx came back from a merge,expected ['signed-out','removed'] to include 'unknown'tsc -b통과, oxlint 경고 없음한계
REMOVED에 직접 더하기 전에는 못 잡습니다.