Skip to content
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

mounting options: slots/scoped slots #2

Closed
lmiller1990 opened this issue Feb 20, 2020 · 3 comments
Closed

mounting options: slots/scoped slots #2

lmiller1990 opened this issue Feb 20, 2020 · 3 comments
Labels

Comments

@lmiller1990
Copy link
Member

lmiller1990 commented Feb 20, 2020

Slots are a pain point in VTU beta. We should make sure there are tests for all the cases, and they all work as expected.

Ref: slots specs in VTU beta: https://github.com/vuejs/vue-test-utils/blob/dev/test/specs/mounting-options/slots.spec.js

We should port the ones that are relevant to this codebase.

NOTE: slots and scoped slots are now the same thing in Vue 3.

@lmiller1990 lmiller1990 changed the title tests: add tests for slots (scoped, nested, default...) mounting options: slots/scoped slots Mar 28, 2020
@lmiller1990 lmiller1990 mentioned this issue Mar 28, 2020
18 tasks
@lmiller1990
Copy link
Member Author

We have basic support:

https://vuejs.github.io/vue-test-utils-next-docs/api/#slots

We should support { template: "<div />" } as well. I could not get this working but I will try again soon.

@lmiller1990
Copy link
Member Author

@dobromir-hristov is there anything else we need to look into for slots? I believe you made a PR around this already.

@dobromir-hristov
Copy link
Contributor

Yeah, helpers at most.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants