registerEndpoint and custom $fetch wrapper
We use the nuxt-open-fetch module, which creates a $fetch wrapper (in our csase $rentals) based on a types file.
The routes in this file are like
Normally one would use
Any way around this?
The routes in this file are like
/api/thing/{someId}/resource, but when I use registerEndpoint in my tests, the calls still seem to both get intercepted and sent to the server, resulting in 404's.Normally one would use
registerEndpoint('/api/rest-of-route'), nut because of {someId} this doesn't work and I have to specify the resolved route (i.e http://localhost:5255/api/things/123/resource and I think nust test utils doesn't handle that properly?Any way around this?