Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feature request: Trigger onServerPrefetch from test #1321

@ferencbeutel4711

Description

@ferencbeutel4711

Is your feature request related to a problem? Please describe.
Currently, it seems that there is no way to test the behaviour of the function defined in onServerPrefetch

Describe the solution you'd like
It would be great if there was a way to trigger the serverPrefetch lifecycle hook from the tests

Additional context

Hey, maybe I am mistaken, but I cant see a way to test the behaviour I have defined in the onServerPrefetch lifecycle hook defined in a setup function in my component. With the options API, this was possible, using the following approach:

wrapper.vm.$options.serverPrefetch()

However, I can see no replacement that can be used for the composition api.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions