T
tRPC

Jest set cookie with caller

Jest set cookie with caller

Vv1narth8/7/2023
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?
AEAhmed Elsakaan8/8/2023
In the context?
Vv1narth8/12/2023
Yea, figured it out like 2 minutes after posting this šŸ˜„ Thanks!

Looking for more? Join the community!

T
tRPC

Jest set cookie with caller

Join Server