testing-action · git:20260922.00e7bbe · 2026-09-22 · sha256 0b0597197e11124c

testing-action git:20260922.00e7bbeA

Immutable. This exact content never changes and is served at /api/v1/blob/0b0597197e11124c.

---
name: testing-action
description: Test an Application Action as an application use case.
---

# Testing an Action

Test Actions through their public `handle()` method.

Verify the observable outcome of the use case.

Mock external boundaries only when appropriate.

Do not mock Domain models merely to isolate the Action from the Domain.

Prefer real Domain behavior.

HTTP behavior belongs in Feature tests for the HTTP adapter, not in Action tests.