Skip to content

How to use with Nuxt.js #92

Closed
Closed
@rubenmoya

Description

@rubenmoya

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions