#how to execute useasyncdata inside a vitest unit test

1 messages · Page 1 of 1 (latest)

jovial perch
#

Hello,
I got a "ReferenceError: useAsyncData is not defined" when i try to execute a function who use "useAsyncData" nuxt function.

How to make it works inside a test ?

slate gust
#

Do you use nuxt-vitest?

jovial perch
#

Hello @slate gust , no just vitest. Should nuxt-vitest replace vitest or be installed with ?

#

Sorry, I didn't see your message

slate gust
#

you need both 🙂

jovial perch
#

It begin easily 😂

#

I will tru to first update nuxt