## Lesson — Duplicating complex mock generators (like ledger events

**Tags:** testing, dx

Duplicating complex mock generators (like ledger events or rule objects) across test files increases maintenance debt. Extracting these to a shared module improves DX and ensures consistent data shapes across the test suite.
