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