danEE
danEE
Explore posts from servers
NNuxt
Created by danEE on 4/3/2024 in #❓・help
Testing Nuxt 3 API Endpoints
Hi, I would like to test my Nuxt 3 server api endpoints. I know I could test it for example in postman or with playwright by making a real fetch request, but I would prefer to be able to mock the database calls and also spy on the functions called. As far as I know, this isn't possible when using postman or playwright? Are there any recommendations on how to properly test the api endpoints? Thank you in advance! Daniel
2 replies
DTDrizzle Team
Created by danEE on 11/11/2023 in #help
InferSelectModel on views
Is there any possibility to get correct typescript types from views? There seems to be nothing like InferSelectModel for views. Appreciate your help!
4 replies