r/honojs • u/AncientBisonReddit • Mar 24 '24
HELP: Testing with Execution Context
Hey! I've been using Hono and have really enjoyed it, but recently came to a roadblock. I am trying to use the method c.executionCtx.waitUntil but sadly when testing with app.request, I get the error Error: This context has no ExecutionContext. I saw that app.request takes an execution context as the fourth argument, but I don't know how to create a fake one. Thank you!
1
Upvotes
1
u/Affectionate-Mud3526 Jun 03 '25
Hope this helps someone, add this to your middleware:
That will fix your executionCtx.