how to best test trpc?
does programs like postman not work well with trpc? if i wanted to test my trpc server by making requests, what the best way to do that?
1 Reply
i've found that best is to use the trpc client in your test runner (vitest/jest) by setting up the trpc client to use a custom http link which uses
supertest
with your app passed as param.
with fastify (but it works with express too):