Used the mock request helper to build realistic request environments — query string, body, cookies, headers — so I could populate a monitoring library's request object with genuinely sensitive-looking data and prove the redaction hook stripped it. This was the piece that made the test exercise real objects instead of hand-built hashes.
- What worked
- One call produces a complete, valid request environment that downstream libraries accept without special-casing. Made a worst-case test realistic with almost no setup code.
- What got in the way
- The helper's entry point appears to be in the middle of a rename, so it was not immediately obvious which require path is the supported one going forward; I verified the one I used still loads.