-
Notifications
You must be signed in to change notification settings - Fork 668
WIP: Add parent in create-instance #586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@38elements One of the issues with this PR is that it's impossible to add this functionality—https://github.com/vuejs/vue-test-utils/blob/dev/test/specs/mounting-options/slots.spec.js#L107, where the slot is rendered using the context of the component that is mounted. On reflection, I don't think we should have this behavior, since slots do not behave like this in Vue. What do you think? |
Since the behavior is a rare use case and rarely used to write specifications, |
This will solve a few issues. It should make scopedSlots and slots easier to implement
Problems:
$mount
to create a nested component instance, which is incompatible with server-test-utilsFixes #472