test: introduce jest-cucumber BDD and split screen/unit tests#45
Merged
Conversation
jest-cucumberを導入し、全31テストファイルをGherkin(.feature) + ステップ定義(.steps.ts)形式に移行。 英語キーワード(Feature/Scenario/Given/When/Then)+ 日本語説明文のスタイルで統一。 CLAUDE.mdにBDDテストガイドラインを追記。 Co-Authored-By: Claude <noreply@anthropic.com>
…eens/ BDDテスト(画面・コンポーネント表示)とUnit Test(ロジック)を分離。 features/ + steps/ を screens/ ディレクトリに統合し、テスト構成を整理。 - screens/: .feature + .steps.tsx(画面・コンポーネントのBDDテスト) - domain/, hooks/, repository/: .test.ts(ロジックのUnit Test) - sharedモジュールのテストは使用する画面側 or 元のsharedに配置 Co-Authored-By: Claude <noreply@anthropic.com>
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
Changes
jest-cucumberをdevDependenciesに追加jest.config.jsに.steps.tsxパターンとtransformIgnorePatternsを追加screens/ディレクトリを追加し、画面単位の.feature+.steps.tsxを配置homeScreen,detailScreen,favoritesScreen,settingsScreen,splashScreendomain/,hooks/,repository/に describe/it 形式で配置CLAUDE.mdにBDDテストガイドラインを追記Test plan
pnpm validate(lint + typecheck + test) 全passRelated Issues