Closed
Description
Hello!
I'm trying to use vue-testing-library
with Nuxt.js and I'm facing a problem with asyncData
not being called.
I've been reading for a while, and some people call wrapper.vm.$options.asyncData()
manually, but that feels super dirty to me, also I don't think vm
is available in vue-testing-library
Any idea of how can I do it? I ran out of ideas to be honest.
I've seen @afontcu post about testing api calls but it uses the created
life cycle method
Thank you!