How to mock useRoute in nuxt ?
I would just like to access
route.params.id
in vitest BUT, I cannot mock useRoute
the way we used to in Nuxt.
No matter what, route.params.id is undefined
I've tried seting up a route in mountSuspended
but to no success.
What's the proper way ?
Thanks2 Replies