How to properly mock useI18n for Vitest?
I have a language switcher using
@nuxtjs/i18n and using the useI18n function for the language switcher. But when I get to my testing using vitest for this I can't find a way to mock this so it doesn't fail with ReferenceError: useI18n is not defined