Repository navigation
意味もなくTextコンポーネントを使用している箇所をTypographyに置換 - #5789
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
📝 WalkthroughWalkthrough複数のコンポーネントファイルでReact Nativeの Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/components/HeaderJRKyushu.test.tsx (1)
20-22: Jotaiモックは共通ヘルパー化を検討してください。
HeaderE231.test.tsxと同型のatom/useAtom/useSetAtomモックが重複しているため、src/utils/test/に共通化すると差分追従が楽になります。As per coding guidelines "Reuse helper utilities from src/utils/test/ to avoid duplicate setup code".
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/components/HeaderJRKyushu.test.tsx` around lines 20 - 22, Extract the duplicated jest mocks (atom, useAtom, useSetAtom) into a shared test helper (e.g., export const jotaiMocks or createJotaiMocks from a new module under src/utils/test/) and replace the inline mocks in HeaderJRKyushu.test.tsx (the atom, useAtom, useSetAtom entries) with imports from that helper; also update the other test (HeaderE231.test.tsx) to import the same helper so both tests reuse the single mock implementation and avoid duplication.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/components/HeaderJRKyushu.test.tsx`:
- Around line 20-22: Extract the duplicated jest mocks (atom, useAtom,
useSetAtom) into a shared test helper (e.g., export const jotaiMocks or
createJotaiMocks from a new module under src/utils/test/) and replace the inline
mocks in HeaderJRKyushu.test.tsx (the atom, useAtom, useSetAtom entries) with
imports from that helper; also update the other test (HeaderE231.test.tsx) to
import the same helper so both tests reuse the single mock implementation and
avoid duplication.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 0b2406bc-a607-4f6d-8193-316e94f8dd62
📒 Files selected for processing (2)
src/components/HeaderE231.test.tsxsrc/components/HeaderJRKyushu.test.tsx
Summary
HeaderE231.tsx/HeaderJRKyushu.tsx/LineBoardLED.tsx/FatalErrorScreen.tsxで意味もなくreact-nativeのTextを使っていた箇所をTypographyに置き換えHeaderJRKyushu.tsxのRNAnimated.Textはアニメーションに必要なためそのまま残し、内側にネストされていたTextのみTypographyへsrc/index.tsxのText.defaultPropsセットアップは保険として残存、テストファイル内のText参照も未変更Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
リリースノート
Refactor
Tests