Skip to main content

aws-cdk-unit-testing

AWS CDK のテストを書く / レビューする / 戦略を考える全ての場面で必ず使用する。「CDK のテスト書いて」「このスタックのテスト書きたい」「CDK のテストはどう書けばいい?」「Stack / Construct のテストどうしよう?」などの依頼にも該当する。スナップショット / Fine-grained assertions / バリデーションの 3 種類のうちどれを書くべきか・書かなくて良いかの判断基準とコード例を提供。加えて、機能フラグ(`cdk.json` の context)の実環境との統一や、`NodejsFunction` の esbuild バンドルをスキップしてテストを高速化するなど、**テスト環境セットアップの Tips** も扱う。具体的には `*.test.ts` 編集時、`Template.fromStack` や `aws-cdk-lib/assertions` 使用時、Stack/Construct の単体テスト新規追加時、既存テストレビュー時、テストが遅い / スナップショットが実デプロイと食い違うといった相談時に該当する。

Jump to install

Source facts

Repository
go-to-k/cdk-skills
Last source activity
May 19, 2026 at 22:30
Detected SKILL.md language
Japanese
Stars
14
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.