-
Notifications
You must be signed in to change notification settings - Fork 267
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
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
Labels
enhancementNew feature or requestNew feature or request