October 14, 2026 · 2 min readTesting Use Cases with In-Memory RepositoriesWhen a stub per method is enough, and when a small repository that keeps its data in memory makes page tests describe state instead of calls.testingclean-architecturetypescript