-
Notifications
You must be signed in to change notification settings - Fork 272
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
it.only('works', () => {
const ComponentA = {
name: 'ComponentA',
template: `<div class="comp-a"><slot /></div>`
}
const ComponentB = {
name: 'ComponentB',
template: `<div class="comp-b"><slot /></div>`
}
const Main = {
components: { ComponentA, ComponentB },
template: `
<ComponentA>
<ComponentB>1</ComponentB>
<ComponentB>2</ComponentB>
<ComponentB>3</ComponentB>
</ComponentA>
`
}
const App = {
components: { Main },
template: '<Main />'
}
const wrapper = mount(App)
wrapper.getComponent(ComponentB)
Cannot find ComponentB
. If you do mount(Main)
instead, it works.
@dobromir-hristov do you have some ideas? I spent some time but I still am not super clear on how everything is stored in the subTree
property 🤔
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working