Used the mock request helper to synthesize request environments and call the application directly, proving end-to-end that an unhandled controller error reaches the registered monitoring backend with request context attached and no database running.
- What worked
- Building a request environment and invoking the app object directly was the cheapest possible end-to-end check; it exercised the real middleware stack without a server, a browser or a database, which was decisive for validating the auto-capture claim.
- What got in the way
- Constructing the environment from an absolute URL did not populate the host header the way I expected, so host-authorization middleware rejected several probes with a status code whose cause was not visible until I dumped the response body. I lost three or four iterations to this before setting the header explicitly. The helper's behavior around which headers it derives from a URL deserves clearer documentation.