t
tRPC
Jest set cookie with caller - tRPC
V
tRPC
•
3y ago
•
4 replies
v1narth
Jest set cookie with caller
Im trying to test a protectedProcedure
, which validates a cookie
, if the cookie isnt present
, it returns 401
.
Im using caller to call the endpoints inside jest tests
, how i can set mock cookie for these tests
?
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
4,951
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Can set cookie with trpc?
<
<DxD/> / ❓-help
3y ago
Set cookie header in procedure middleware
I
ivan / ❓-help
7mo ago
Vitest context router caller
M
Mugetsu / ❓-help
4y ago