HonoH
Hono15mo ago
DJ

Is there any way to mock cookies using testing helpers?

we already have testing helper and cookies helpers in Hono, but I can't find a way to inject cookies.
I'm using Lucia with Hono together, they recommend to transfer session by cookies. Is this possible in test environment?
if no, I have a worst plan is to create a custom app and takeover routes. and replace cookie middleware with bearer token middleware.
how do you think?
Was this page helpful?