You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It replaces each childs render function with an empty function, and replaces each child component lifecycle hook with an empty function.
I've already had a user ask if there was a way to bypass the lifecycle hooks stubbing.
I think they should be stubbed by default, but should there be an option to pass that will stop shallow replacing child lifecycle hooks?
What do people think?
The text was updated successfully, but these errors were encountered:
eddyerburgh
changed the title
Should shallow rendering stub child lifecycle events by default?
Should shallow rendering stub child lifecycle hooks by default?
Jun 21, 2017
I've added shallow to vue-test-utils and avoriaz.
It replaces each childs render function with an empty function, and replaces each child component lifecycle hook with an empty function.
I've already had a user ask if there was a way to bypass the lifecycle hooks stubbing.
I think they should be stubbed by default, but should there be an option to pass that will stop
shallow
replacing child lifecycle hooks?What do people think?
The text was updated successfully, but these errors were encountered: