変更を検証するため、テストをデバッグ出力付きで実行する。
# 指定ファイル
LOG_LEVEL=debug deno test $ARGUMENTS --allow-env --allow-write --allow-read
# 全テスト(引数なし時)
LOG_LEVEL=debug deno test --allow-env --allow-write --allow-read
# 全CI(推奨)
deno task ci
テスト構造
単体テスト(lib/ 配下、実装と同一ディレクトリ)
lib/factory/*.test.ts, lib/types/*_test.ts など
統合・E2Eテスト(tests/ 配下、番号付きドメイン構造)
| Dir | Content |
|---|---|
tests/0_core_domain/ |
核心ドメイン統合テスト(プロンプトパス解決等) |
tests/4_cross_domain/ |
ドメイン間統合・E2Eテスト |
tests/integration/ |
JSR統合・設定プロファイルテスト |
tests/fixtures/ |
テストフィクスチャ |
実行順序(CLAUDE.md 規約)
deno task ciで全体把握DEBUG=true deno task ciで詳細確認- 個別テストファイルで特定エラー調査
Converted and distributed by TomeVault — claim your Tome and manage your conversions.