v1narth
v1narth15mo ago

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?
2 Replies
Ahmed Elsakaan
Ahmed Elsakaan15mo ago
In the context?
v1narth
v1narth15mo ago
Yea, figured it out like 2 minutes after posting this 😄 Thanks!