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
In the context?
Yea, figured it out like 2 minutes after posting this 😄
Thanks!