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 does not seem related to functional components to me, it also fails when the component is not functional.
It think it comes from createSlotVNodeshttps://github.com/vuejs/vue-test-utils/blob/dev/packages/create-instance/create-slot-vnodes.js#L41 which receive good values, but returns an array with duplicated VNodes. It looks like a reference/value issue, where VNodes having already been created are overwritten by the creation of a new VNode
trashpanda001
changed the title
Slot testing fails for functional component.
Slot testing fails for component.
Jul 24, 2018
Version
1.0.0-beta.21
Reproduction link
https://github.com/sickp/vue-test-slots
Steps to reproduce
yarn install
yarn test:unit
What is expected?
What is actually happening?
default slot receives 'Hello There'
This worked in 1.0.0-beta.20
The text was updated successfully, but these errors were encountered: