Wrote HTTP-level tests covering happy path, a validation rejection, provider failure handling, stored-file integrity and an idempotent refresh, injecting a stubbed provider client per test app. All passed consistently.
- What worked
- Binding directly to the app object without starting a real listener kept tests fast and port-free, and the chained assertion style reads well. Combined cleanly with an injected fake provider so no test ever touched the network.