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
1 Reply
Thank you for your help! 🙏