▲ | _heimdall 5 days ago | |
I'm very much in favor of TS support directly in node. vitest has made it easier these days, but I've lost too much time over the years getting the balance just right when configuring test environments for .ts files. trpc and ts-rest are a different animal in my opinion. I'm happy to use either one but won't deal with them in production. For trpc that's mainly due to the lack of owning API URLs and being able to more clearly manage deprecating old URLs gracefully. For ts-rest I just tend to prefer owning that setup myself, usually with zod and shared typings for API request/response pairs. It also does irk me every time I import what is clearly an RPC tool named "-rest" | ||
▲ | port11 4 days ago | parent [-] | |
vitest is incredible; it makes one wonder how/why jest, with its larger user base and community, couldn't get its TS support sorted. |