3 ms·
Could you elaborate more on how you approached testing the applications that use tRPC? I was looking for example big projects that use tRPC but they don't have
by karlosos 4y ago
Could you elaborate more on how you approached testing the applications that use tRPC? I was looking for example big projects that use tRPC but they don't have tests [0]. I am wondering what you mean by testing calls with unit tests. Have you been testing individual endpoints, e.g. `trpc.postst.getAll`, or have you been testing components that use tRPC endpoints? I would appreciate some examples.
[0] https://trpc.io/docs/awesome-trpc#-open-source-projects-using-trpc https://trpc.io/docs/awesome-trpc#-open-source-projects-usin...
- alexdotjs 4y agoHere's an example of testing: https://github.com/trpc/examples-next-prisma-starter/blob/main/src/server/routers/post.test.ts https://github.com/trpc/examples-next-prisma-starter/blob/ma...