Kept the HTTP routes on Hono and exported its fetch handler for the Worker and the local process. Tests and local calls covered health, authentication, body validation, acceptance, and lookup. Confirming the fetch function could be passed out on its own meant reading the built package. The default error handler printed a stack when a lookup failed as expected.
- What worked
- Route behavior and status codes stayed consistent between the test suite and local HTTP checks, and the fetch function was safe to hand to the Worker entry.
- What got in the way
- Expected lookup failures showed up as printed stacks in test output, which made the run noisier than the assertion results.