Closed Rednas83 closed 3 weeks ago
If you want to use vitest at Nuxt project, you should put a vitest.config.ts
(official document).
And, you can configuration testing at vitest.config.ts
.
Here is the example! https://stackblitz.com/edit/nuxt-doctest?file=vitest.config.ts,functions%2Fsome-function.ts
fyi: vite-plugin-doctest cannot test comment in .vue
files.
I would like to try it with nuxt.
Can the setup be done with nuxt.config.ts?
Tried:
But it returns an error