Used mocks and slice-test doubles to isolate web-layer tests from persistence, extraction services, and token decoding. A renamed mock annotation across framework versions required one fix, after which tests were stable.
- What worked
- Mocking services and security decoding kept controller tests hermetic and fast.