Merged
Conversation
Contributor
📝 WalkthroughウォークスルーTTS フロー内に停止状態の変更を追跡し、その変更に基づいて音声抑制判定を制御する新機能を追加します。useTTS フック で停止状態の前後を比較し、stoppingStateChanged フラグを計算して、computeSuppressionDecision に渡すことで、停止状態の変化時に特定の抑制ロジックをバイパスします。 変更内容
推定コードレビュー工数🎯 3 (中程度) | ⏱️ ~20 分 関連する可能性のあるプルリクエスト
推奨ラベル
うさぎからのお祝いの詩
🚥 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/utils/computeSuppressionDecision.test.ts (1)
1-23:⚠️ Potential issue | 🟡 Minor
afterEachフックでjest.clearAllMocks()を追加してください。
コーディングガイドラインに従い、各テスト実行後にモックを明示的にクリアする必要があります。追加例
import { computeSuppressionDecision } from './computeSuppressionDecision'; +afterEach(() => { + jest.clearAllMocks(); +}); + const createParams = (🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/utils/computeSuppressionDecision.test.ts` around lines 1 - 23, Add an afterEach hook in the test file to call jest.clearAllMocks() so mocks are reset between tests; insert afterEach(() => jest.clearAllMocks()) near the top-level (alongside the existing describe('computeSuppressionDecision', ...)) to ensure any mocks used by tests of computeSuppressionDecision and helpers like createParams 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/utils/computeSuppressionDecision.test.ts`:
- Around line 1-23: Add an afterEach hook in the test file to call
jest.clearAllMocks() so mocks are reset between tests; insert afterEach(() =>
jest.clearAllMocks()) near the top-level (alongside the existing
describe('computeSuppressionDecision', ...)) to ensure any mocks used by tests
of computeSuppressionDecision and helpers like createParams 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.
Summary by CodeRabbit
リリースノート