DevOverlayにバックグラウンド位置情報取得のON/OFF状態表示を追加#5402
Merged
TinyKitten merged 1 commit intodevfrom Feb 22, 2026
Merged
Conversation
Contributor
📝 WalkthroughWalkthroughバックグラウンド位置情報追跡機能の状態管理を追加するプルリクエスト。新しい Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
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 unit tests (beta)
Comment |
Contributor
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/hooks/useStartBackgroundLocationUpdates.test.tsx (1)
43-49:⚠️ Potential issue | 🟡 Minor
afterEachでjest.clearAllMocks()を呼ぶ必要があります。
現在はbeforeEachのみなのでガイドライン要件を満たしていません。修正案
beforeEach(() => { jest.clearAllMocks(); mockAutoModeEnabled = false; mockStartLocationUpdatesAsync.mockResolvedValue(undefined); mockStopLocationUpdatesAsync.mockResolvedValue(undefined); mockWatchPositionAsync.mockResolvedValue({ remove: mockRemove }); }); + + afterEach(() => { + jest.clearAllMocks(); + });As per coding guidelines "Call
jest.clearAllMocks()inafterEachblocks in all test files".🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/hooks/useStartBackgroundLocationUpdates.test.tsx` around lines 43 - 49, Add an afterEach block that calls jest.clearAllMocks() to satisfy the guideline; currently only beforeEach contains jest.clearAllMocks(), so update the test file useStartBackgroundLocationUpdates.test.tsx to include an afterEach(() => { jest.clearAllMocks(); }) (or move the existing jest.clearAllMocks() from beforeEach into afterEach) so mocks started in beforeEach (mockStartLocationUpdatesAsync, mockStopLocationUpdatesAsync, mockWatchPositionAsync) are cleared after each test.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@src/hooks/useStartBackgroundLocationUpdates.test.tsx`:
- Around line 43-49: Add an afterEach block that calls jest.clearAllMocks() to
satisfy the guideline; currently only beforeEach contains jest.clearAllMocks(),
so update the test file useStartBackgroundLocationUpdates.test.tsx to include an
afterEach(() => { jest.clearAllMocks(); }) (or move the existing
jest.clearAllMocks() from beforeEach into afterEach) so mocks started in
beforeEach (mockStartLocationUpdatesAsync, mockStopLocationUpdatesAsync,
mockWatchPositionAsync) are cleared after each test.
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.
https://claude.ai/code/session_01TeXZrLdSLV15rS9AGfcuc2
Summary by CodeRabbit
リリースノート
新機能
テスト