Feat/admin util tests from develop#421
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.
개요
admin 영역의 유틸 함수 테스트를 전반적으로 보강하고, 실제 사용처에서 유틸 동작이 연결되는지 통합 테스트를 추가했습니다.
함께 포함된 기존 브랜치 변경(ShareBanner, Cast API, CI notify)도 포함되어 있습니다.
주요 변경사항
1) util 테스트 인프라/의존성 추가
apps/admin/package.jsonvitest테스트 스크립트 추가jsdom,@testing-library/react,@testing-library/dom추가.pnp.cjs,yarn.lock갱신2) util 유닛 테스트 추가
apps/admin/src/utils/validation.test.tsapps/admin/src/utils/replace.test.tsapps/admin/src/utils/format.test.tsapps/admin/src/utils/phone.test.tsapps/admin/src/utils/link.test.tsapps/admin/src/utils/app.test.tsapps/admin/src/utils/boldText.test.tsapps/admin/src/utils/highlight.test.tsxapps/admin/src/utils/vConsole.test.ts3) util 관련 통합 테스트 추가
apps/admin/src/components/ReservationTable/ReservationTable.integration.test.tsxapps/admin/src/components/EnteranceTable/EnteranceTable.integration.test.tsxapps/admin/src/components/MobileCardList/MobileCardList.integration.test.tsxapps/admin/src/pages/AppStoreBridge/AppStoreBridge.integration.test.tsx4) 유틸 동작 보정
apps/admin/src/utils/format.ts--가 생기지 않도록 안전 포맷팅 로직으로 개선5) 브랜치에 함께 포함된 기존 변경
apps/admin/src/hooks/useShareBannerVisibility.tsapps/admin/src/components/ShareBanner/ShareBanner.styles.tsapps/admin/src/components/ShowCastInfoFormDialogContent/index.tsx.github/workflows/notify-policy-changes.yml검증
yarn workspace admin test13 files, 65 tests passed참고
/.cursor,/.omx는 untracked 상태이며 PR 변경 파일에는 포함하지 않았습니다.