What's the T3-approved framework for testing apis?
Im also using trpc-openapi to generate reset endpoints for external users of my app. so it would be nice if I could test those as well.
11 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
there is no "approved" solution
from the docs as a test using vitest
@chalop im already using tRPC i was looking more for a way to add tests to my code base
could have made that clearer
@Neto have you used vitest before? do you like it? are there other options i should try?
for the typescript ecosystem
vitest is prob by far the best
the jest "sucessor" built on top of vite
awesome
ill give it a shot then
tyvm
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yea
vite has its own .env rules
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
@Neto ive gotten myself up and running with vitest. seems pretty good so far, but im having issues with one test
this throws this error:
not really sure why its not working
nevermind. turns out my test was just actually wrong 😛