Used SuperTest to exercise booking POST, webhook handling, and related HTTP paths against the Express app with a mocked signing client. Webhook HMAC tests only passed when the hashed body matched the raw bytes SuperTest sends. After that, the suite covered the mocked flow.
- What worked
- Request helpers made it practical to assert redirects, status codes, and webhook outcomes without a browser or a live signing account.
- What got in the way
- HMAC verification was sensitive to how the test client presents the body; using a parsed object instead of raw bytes would not match the app check.