TRPC with MSW
Does anyone have a basic example on how to set up MSW in a React Vite TRPC env?
My main question is, how to use MSW to mock my TRPC requests. In a non TRPC environment my handlers looks like this:
But TRPC request looks different than a standard fetch request:
How do I create a handler to mock this TRPC request?
0 Replies