nuxt / test-utils

🧪 Test utilities for Nuxt
http://nuxt.com/docs/getting-started/testing
MIT License
323 stars 84 forks source link

Allow to check the parameters sent by using registerEndpoint #885

Open xavier-ottolini opened 4 months ago

xavier-ottolini commented 4 months ago

Describe the feature

The function "registerEndpoint" is an interesting feature to check if a request is sent, and to check the response parsing.

However, it would be also useful to check which params are sent in the URL, in the query parameters and in the body.

Additional information

Final checks

Cephra commented 4 months ago

This would be a great idea! I'm at the same spot now looking for a way to assert that certain API calls have been made. Maybe there is another way to accomplish this.