How to test tRPC queries #105
-
After reading the documentation for tRPC support and debugging for several hours I haven't been able to get the feature to work. Consider a basic How should this input be specified in the workflow?
would be enough (though that feels wrong because how would it handle multiple input values?) but that doesn't work. tRPC reports that...
Maybe something like the mutation example in the docs would work?
But no, that causes the same error from tRPC. I've also tried adopting syntax from the HTTP API docs like
and
I've even tried hand-writing the JSON object and sending that as a string but they all result in the same message from tRPC. By the way, while these tests are failing to even send the data stepci is reporting that it passes no matter what status code I check against. Does anyone have experience testing tRPC with stepci and can show me where I'm going wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hello, thanks for starting the discussion 😄 Please subscribe to the issue if you want to get updates: #106 |
Beta Was this translation helpful? Give feedback.
-
Hey again, @matthewd673 The "Query Batching" example from the updated documentation now works with create-t3-app (I've tested it!) Hopefully, you're still keen to try Step CI Mish & Team |
Beta Was this translation helpful? Give feedback.
-
Hey Matthew @matthewd673 |
Beta Was this translation helpful? Give feedback.
Hey again, @matthewd673
I've taken a closer look into the issue and have added tRPC batching support 🤩
The "Query Batching" example from the updated documentation now works with create-t3-app (I've tested it!)
https://docs.stepci.com/guides/testing-trpc.html
Hopefully, you're still keen to try Step CI☺️
Please let me know if you run into any issues or have other questions I could help you with 😉
Mish & Team