v1narth
v1narthā€¢10mo 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 Elsakaanā€¢10mo ago
In the context?
v1narth
v1narthā€¢10mo ago
Yea, figured it out like 2 minutes after posting this šŸ˜„ Thanks!