3 ms·
I used tRPC with Cloudflare workers and a Vue/Pinia front-end and really loved the experience. tRPC was a bit of a fussy one to setup but once it was setup, it
by matthewfcarlson 4y ago
I used tRPC with Cloudflare workers and a Vue/Pinia front-end and really loved the experience. tRPC was a bit of a fussy one to setup but once it was setup, it was a real pleasure to work with. Being able to test the calls with unit tests was also fantastic
- karlosos 4y agoCould 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...