You can find many basic examples of test with Vitest and Vue-utils-test
- pnpm install
- pnpm test
- /test/basic.test.ts
-> vitest:
-> vue-test-utils:
-> can't know if a function has been called inside a function in a vue component if these 2 functions have been declared in the vue component: https://github.com/mattaiod/VITEST-cant-spy-fn-in-fn-in-component
-> can't mock a function inside a function in a vue component if these 2 functions have been declared in the vue component: https://github.com/mattaiod/VITEST-cant-mock-fn-in-fn-in-component
-> can't mock useI18n() in a component https://github.com/mattaiod/VITEST-mock-usei18n